-
Notifications
You must be signed in to change notification settings - Fork 1
isList
wolfram77 edited this page Mar 31, 2020
·
21 revisions
Checks if value is a list (not string).
Alternatives: is, isList, isIterator.
iterable.isList(v);
// v: value
const iterable = require('extra-iterable');
iterable.isList([1, 2]);
// true
iterable.isList('ab');
// false
iterable.isList(1);
// false