4.17.11
3.10.1
2.4.2
1.3.1
_.initial(array)
Gets all but the last element of array
.
Since
0.1.0
Arguments
argument
array
type
Array
description
The array to query.
Returns
(array)
Example
_.initial([1, 2, 3]);
// => [1, 2]
_.initial([1, 2, 3]);
// => [1, 2]