ts-iterable-functions
    Preparing search index...

    Function _skip

    • Skips the specified number of elements from the beginning of the source iterable.

      Type Parameters

      • T

        Element type produced by the source iterable.

      Parameters

      • src: Iterable<T>

        Source iterable evaluated from which elements may be skipped.

      • numItems: number

        Number of leading elements to discard; non-positive values return the source unchanged.

      Returns Iterable<T>

      A deferred iterable yielding the elements of src after the skipped prefix.

      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]