Function isIsomorphicIterable

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

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

    Example

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

    Type Parameters

    • Item

    Parameters

    • input: unknown

      Value to check.

    Returns input is IsomorphicIterable<Item>

    true when is an IsomorphicIterable, false otherwise.