pick
pick<
T>(items):T
Defined in: src/secure.ts:194
One element. Throws when the collection is empty.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Collection<T>
Returns
Section titled “Returns”T
Example
Section titled “Example”pick(["a", "b", "c"]); // "b"