Skip to content

five-on-it / packages/sim/src/items / itemMatches

Function: itemMatches() ​

itemMatches(def, tag): boolean

Defined in: packages/sim/src/items.ts:248

Whether an item answers to a tag: one of its tags, or its id.

Parameters ​

def ​

ItemDef

tag ​

string

Returns ​

boolean