Checks if a value is an Iterable.
Is String iterable?
const result = isIterable("");console.log(result); // true
Is Array iterable?
const result = isIterable([]);console.log(result); // true
true if value is an Iterable, otherwise false
true
value
false
the Iterable element type
the value to check
Generated using TypeDoc
Checks if a value is an Iterable.
Example
Is String iterable?
Example
Is Array iterable?
Returns
trueifvalueis an Iterable, otherwisefalse