skip(n = 0)
Returns a new Enumerable without the first n
elements.
Arguments
- n (Number): number of elements to skip
Returns
(Enumerable): new Enumerable without the first n
elements.
Example
Enumerable
.from([1, 2, 3, 4, 5, 3])
.skip(2)
.toArray();
// [3, 4, 5, 3]