Skip to content

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 ​

SimWorld

id ​

string

Returns ​

number