Const
Skips the specified number of elements from the beginning of the source iterable.
Curried version of _skip.
Element type produced by the source iterable.
Number of leading elements to discard; non-positive values return the source unchanged.
A deferred iterable yielding the elements of src after the skipped prefix.
src
const remaining = [..._skip([1, 2, 3, 4], 2)];console.log(remaining); // [3, 4] Copy
const remaining = [..._skip([1, 2, 3, 4], 2)];console.log(remaining); // [3, 4]
or using the curried version:
const remaining = [ ...pipeInto( [1, 2, 3, 4], skip(2) ),];console.log(remaining); // [3, 4] Copy
const remaining = [ ...pipeInto( [1, 2, 3, 4], skip(2) ),];console.log(remaining); // [3, 4]
Skips the specified number of elements from the beginning of the source iterable.
Curried version of _skip.