• Returns an iterable sequence that invokes the specified factory function whenever a call to [Symbol.iterator] has been made.

    Type Parameters

    • TSource

      The type of the elements in the sequence returned by the factory function, and in the resulting sequence.

    Parameters

    • factory: (() => Iterable<TSource>)

      iterable factory function to invoke for each call to [Symbol.iterator].

        • (): Iterable<TSource>
        • Returns Iterable<TSource>

    Returns Iterable<TSource>

    An iterable sequence whose observers trigger an invocation of the given iterable factory function.

Generated using TypeDoc