Function consume

  • Start iterating through the input iterator, but don't return the values from it.

    Type Parameters

    • T

    Parameters

    • Optionaln: number

      optional, the number of elements to consume (default: Infinity).

    Returns (arg: IteratorOrIterable<T>) => void

  • Start iterating through the input iterator, but don't return the values from it.

    Type Parameters

    • T

    Parameters

    • arg: IteratorOrIterable<T>

      The iterator or iterable to consume.

    • Optionaln: number

      optional, the number of elements to consume (default: Infinity).

    Returns void