_.take(array, [n=1])
Creates a slice of array with n elements taken from the beginning.
Arguments
array (Array)
: The array to query.
[n=1] (number)
: The number of elements to take.
Returns
(Array)
: Returns the slice of array.