drop
Creates a slice of array with n elements dropped from the beginning.
Since
0.5.0
Arguments
n(number): The number of elements to drop.array(Array): The array to query.
Returns
(Array): Returns the slice of array.
Example
_.drop(1, [1, 2, 3]);
// => [2, 3]
_.drop(2, [1, 2, 3]);
// => [3]
_.drop(5, [1, 2, 3]);
// => []
_.drop(0, [1, 2, 3]);
// => [1, 2, 3]