-
Notifications
You must be signed in to change notification settings - Fork 1
isMany
Subhajit Sahu edited this page Feb 3, 2021
·
15 revisions
Check if an iterable can be iterated many times.
Alternatives: is, isList, isIterator, isOnce, isMany.
Similar: isOnce, isMany, toMany.
function isMany(x)
// x: an iterable
const xiterable = require('extra-iterable');
var x = [1, 2, 3, 4];
xiterable.isMany(x);
// → true
xiterable.isMany(x.xiterable.values());
// → false