initial

Array
since 0.1.0

Arguments

  • Array The array to query.

Returns

Array the slice of `array`.

Gets all but the last element of array.

Example of Lodash _.initial

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