Function iteratorFromIterable

  • Extracts the underlying synchronous or asynchronous iterator from a synchronous or asynchronous iterable, respectively.

    If the provided value adheres to both the Iterable and AsyncIterable protocols, its asynchronous interface will be used.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • iterable: Iterable<T> | AsyncIterable<T>

      A synchronous or asynchronous iterable.

    Returns Iterator<T> | AsyncIterator<T>

Generated using TypeDoc