Skip the first n elements of an Iterable.
n
Behavior for negative skipSize is not defined.
skipSize
Skip the first 2 elements
const skipFirst2 = skip(2);const iterable = skipFirst2([1, 2, 3, 4]);console.log(iterable); // [3, 4]
dropWhile, limit and takeWhile for similar operations.
an Iterable that does not emit the first skipSize elements
the Iterable value type
the number of values to skip
Generated using TypeDoc
Skip the first
nelements of an Iterable.Remarks
Behavior for negative
skipSizeis not defined.Example
Skip the first 2 elements
See
dropWhile, limit and takeWhile for similar operations.
Returns
an Iterable that does not emit the first
skipSizeelements