We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Check if a map is empty.
Similar: size, isEmpty.
function isEmpty(x) // x: a map
const map = require('extra-map'); var x = new Map([['a', 1], ['b', 2], ['c', 3]]); map.isEmpty(x); // → false var x = new Map(); map.isEmpty(x); // → true