Returns the first item in an array, or the fallback if list is null or undefined.
list
head(99)([3, 6, 9])// => 3head(99)(undefined)// => 99 Copy
head(99)([3, 6, 9])// => 3head(99)(undefined)// => 99
Generated using TypeDoc
Returns the first item in an array, or the fallback if
list
is null or undefined.