Gets all but the last element of array.
array
5.18.0
initial([1, 2, 3])// => [1, 2]
The array to query.
Returns the slice of array.
Gets all but the last element of
array
.5.18.0