getIdentifiers()function

getIdentifiers(entities: Iterable<Item<I, T>>): Iterable<I>
ParamType
entitiesIterable<Item<I, T>>
The iterable of item objects to read identifiers from. required
Return
Iterable<I>
An iterable yielding the id of each item.

Get the identifiers from an iterable set of item objects.

Examples

Array.from(getIdentifiers([{ id: "a" }, { id: "b" }])) // ["a", "b"]