Skip to content
Subhajit Sahu edited this page Nov 20, 2022 · 17 revisions

Check if value is an array.


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

array.is([1, 2]);
// → true

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

array.is(new Set([1, 2]));
// → false


References

Clone this wiki locally