Skip to content

isEmpty

Subhajit Sahu edited this page Dec 28, 2022 · 14 revisions

Check if lists is empty.

Similar: size, isEmpty.


function isEmpty(x)
// x: lists
const xlists = require('extra-lists');

var x = [['a', 'b', 'c'], [1, 2, 3]];
xlists.isEmpty(x);
// → false

var x = [[], []];
xlists.isEmpty(x);
// → true


References