iterable-is
v0.1.6
Published
Check if value is iterable.
Downloads
67
Readme
iterable-is
NOTE: iterable-is was renamed to @extra-iterable/is.
Check if value is iterable.
Use iterable-iscollection, if checking collection (not string) is needed.
const is = require('iterable-is');
// is(<value>)
is(1);
// false
is([1]);
// true
is('1');
// true
is(new Set().add(1));
// true
is(new Map().set(1, null));
// true