-
Notifications
You must be signed in to change notification settings - Fork 5
Subhajit Sahu edited this page Mar 15, 2020
·
17 revisions
Check if value is array, like Array.isArray().
const is = require('@extra-array/is');
// is(<value>)
is([5, 12, 14, 9, 14, 15]);
// true
is(['e', 'l', 'n', 'i', 'n', 'o']);
// true
is(new Set([5, 12, 14, 9, 14, 15]));
// false
is({array: true});
// false
With extra-array try
Array.is()
instead.