Function isAsynchronousIterable

  • Check if given value is AsynchronousIterable (either Iterable or AsyncIterable).

    Not to be confused with isAsyncIterable which only checks for AsyncIterable.

    Example

    isIterable([]); // true
    isIterable({}); // false

    Returns

    true when is an AsynchronousIterable, false otherwise.

    Type Parameters

    • Actual

    • Item

    Parameters

    • input: Actual | AsynchronousIterable<Item>

      Value to check.

    Returns input is AsynchronousIterable<Item>