• Creates a push iterator over elements of the given push iterable.

    Calls iterable[Symbol.iterator]() and returns its result.

    Type Parameters

    • T

      Iterated elements type.

    Parameters

    • iterable: PushIterable<T>

      A push iterable to construct iterator of.

    Returns PushIterator<T>

    Push iterator.

  • Creates an iterable iterator over elements of the given iterable supporting iterable iteration.

    Calls iterable[Symbol.iterator]() and returns its result.

    Type Parameters

    • T

      Iterated elements type.

    Parameters

    • iterable: {
          [iterator]() => IterableIterator<T>;
      }

      A push iterable to construct iterator of.

    Returns IterableIterator<T>

    Iterable iterator.

  • Creates iterator over elements of the given iterable.

    Calls iterable[Symbol.iterator]() and returns its result.

    Type Parameters

    • T

      Iterated elements type.

    Parameters

    • iterable: Iterable<T>

      An iterable to construct iterator of.

    Returns Iterator<T>

    Either push or raw iterator.

Generated using TypeDoc