isEmpty - nodef/extra-map GitHub Wiki
Check if a map is empty.
function isEmpty(x)
// x: a map
const map = require('extra-map');
var x = new Map(['a', 1], ['b', 2], ['c', 3](/nodef/extra-map/wiki/'a',-1],-['b',-2],-['c',-3));
map.isEmpty(x);
// → false
var x = new Map();
map.isEmpty(x);
// → true