Creates a slice of an array with n elements dropped from the start.
n
The array to process.
The number of elements to drop from the start. Defaults to 1.
1
A new array excluding the dropped elements.
drop([1, 2, 3, 4], 2);// → [3, 4]drop([1, 2, 3]);// → [2, 3] Copy
drop([1, 2, 3, 4], 2);// → [3, 4]drop([1, 2, 3]);// → [2, 3]
1.0.0
Creates a slice of an array with
n
elements dropped from the start.