Skip to content

isEmpty

Subhajit Sahu edited this page Jun 17, 2020 · 14 revisions

Checks if entries is empty. 🏃 📼 📦 🌔 📒

Similar: size, isEmpty.

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

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

var x = new Map();
map.isEmpty(x);
// true

references

Clone this wiki locally