slice

Array
since 3.0.0

Returns

Array the slice of `array`.

Creates a slice of array from start up to, but not including, end.

Note: This method is used instead of Array#slice to ensure dense arrays are returned.

Example of Lodash _.slice