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 entries = require('extra-entries');

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

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

entries.is(1);
// → false


References

Clone this wiki locally