-
Notifications
You must be signed in to change notification settings - Fork 1
Subhajit Sahu edited this page Feb 3, 2021
·
21 revisions
Check if value is an iterable.
Alternatives: is, isList, isIterator, isOnce, isMany.
function is(v)
// v: a value
const xiterable = require('extra-iterable');
xiterable.is([1, 2]);
// → true
xiterable.is("ab");
// → true
xiterable.is(1);
// → false