getItemIdentifier

Function

Consistent means to get an item's identifier - either the slug or the id

  • getItemIdentifier(item: IItem) : string

Parameters

Parameter Type Default Notes
item Required IItem

Returns

string

Function defined in common/src/items/getItemIdentifier.ts:9