Skip to content

pickIndex

pickIndex<T>(items): number

Defined in: src/global/collections.ts:40

The index of one element, rather than the element itself.

T

Collection<T>

number

pickIndex(["a", "b", "c"]); // 2