pickIndex
pickIndex<
T>(items):number
Defined in: src/global/collections.ts:40
The index of one element, rather than the element itself.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Collection<T>
Returns
Section titled “Returns”number
Example
Section titled “Example”pickIndex(["a", "b", "c"]); // 2