getIdentifier()function

getIdentifier({ id }: Item<I, T>): I
ParamType
itemItem<I, T>
The item object to read the id from. required
Return
I
The item's id identifier.

Get the identifier from an item object.

Examples

getIdentifier({ id: "abc", name: "Dave" }) // "abc"