-
Notifications
You must be signed in to change notification settings - Fork 5
isEmpty
Subhajit Sahu edited this page May 3, 2023
·
11 revisions
Check if an array is empty.
Similar: index, indexRange, size, isEmpty.
function isEmpty(x)
// x: an array
const xarray = require('extra-array');
var x = [1, 2, 3];
xarray.isEmpty(x);
// → false
var x = [];
xarray.isEmpty(x);
// → true