Function isIterable

  • Checks whether the given object is iterable.

    Type Parameters

    • TElement

      Iterable elements type.

    • TOther = unknown

      Non-iterable type the value may have.

    Parameters

    • value: TOther | Iterable<TElement>

      An object value to check.

    Returns value is Iterable<TElement>

    true if the value has a [Symbol.iterator] method, or false otherwise.

Generated using TypeDoc