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