Returns all elements of an array except the last one.
The array to process.
A new array containing all elements except the last one.
initial([1, 2, 3]);// → [1, 2]initial([5]);// → [] Copy
initial([1, 2, 3]);// → [1, 2]initial([5]);// → []
1.0.0
Returns all elements of an array except the last one.