@nevware21/ts-utils
    Preparing search index...

    Function isIterable

    • Checks if the value looks like it is iterable, contains a [symbol.iterator].

      Type Parameters

      • T = any

        Identifies the return type of the iterator

      Parameters

      • value: any

        The value to be checked

      Returns value is Iterable<T>

      True if the value is an Iterable, otherwise false

      0.4.0

      isIterable(null);        // false
      isIterable(undefined); // false
      isIterable("null"); // true (Strings are iterable)
      isIterable([]); // true (Arrays are iterable)