Get first element of an iterable or asynchronous iterable (undefined if it is empty).
undefined
head([1, 2, 3]); // 1 Copy
head([1, 2, 3]); // 1
Iterable to get the first element from.
First element of the iterable (undefined if empty).
Get first element of an iterable or asynchronous iterable (
undefined
if it is empty).Example