Skip to content
Subhajit Sahu edited this page May 3, 2023 · 17 revisions

Check if value is an array.


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

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

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

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


References

Clone this wiki locally