Skip to content

isEmpty

Subhajit Sahu edited this page Feb 4, 2021 · 14 revisions

Checks if entries is empty. 🏃 📼 📦 🌔 📒

Similar: size, isEmpty.


entries.isEmpty(x);
// x: entries
const entries = require("extra-entries");

var x = [["a", 1], ["b", 2], ["c", 3]];
entries.isEmpty(x);
// false

var x = [];
entries.isEmpty(x);
// true


References

Clone this wiki locally