ES Version of lodash.initial Gets all but the last element of array.
lodash.initial
The array to query.
Returns the slice of array.
ES Version of
lodash.initial
Gets all but the last element of array.