Checks if the value looks like it is iterable, contains a [symbol.iterator].
Identifies the return type of the iterator
The value to be checked
True if the value is an Iterable, otherwise false
0.4.0
isIterable(null); // falseisIterable(undefined); // falseisIterable("null"); // true (Strings are iterable)isIterable([]); // true (Arrays are iterable) Copy
isIterable(null); // falseisIterable(undefined); // falseisIterable("null"); // true (Strings are iterable)isIterable([]); // true (Arrays are iterable)
Checks if the value looks like it is iterable, contains a [symbol.iterator].