_.initial(array)
Gets all but the last element of array
.
Since
0.1.0
Arguments
-
array
(Array): The array to query.
Returns
(Array): Returns the slice of array
.
Example
_.initial([1, 2, 3]); // => [1, 2]
_.initial(array)
Gets all but the last element of array
.
0.1.0
array
(Array): The array to query.(Array): Returns the slice of array
.
_.initial([1, 2, 3]); // => [1, 2]
Please login to continue.