Skip to content
Subhajit Sahu edited this page Dec 22, 2022 · 12 revisions

Check if value is an iterable.


function is(v)
// v: a value
const ientries = require('extra-ientries');

ientries.is([["a", 1], ["b", 2]]);
// → true

ientries.is([]);
// → true

ientries.is(1);
// → false


References

Clone this wiki locally