five-on-it / packages/sim/src/items / itemIndex
Function: itemIndex()
itemIndex(
sim,id):number
Defined in: packages/sim/src/items.ts:243
The index of an item in the room's table by its id, or -1.
Parameters
sim
id
string
Returns
number