Skip to content

isEmpty

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

Check if ilists is empty.

Similar: size, isEmpty.


function isEmpty(x)
// x: ilists
const xilists = require('extra-ilists');

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

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


References

Clone this wiki locally