head first

Array
since 0.1.0

Arguments

  • Array The array to query.

Returns

* the first element of `array`.

Gets the first element of array.

Example of Lodash _.head

_.head([1, 2, 3]);
// => 1

_.head([]);
// => undefined