JS: Map.prototype.size
(new in ECMAScript 2015)
mapObj.size-
Return the total count of entries in mapObj.
console.assert((new Map([[3, 3], [4, 4]])).size === 2);
(new in ECMAScript 2015)
mapObj.sizeReturn the total count of entries in mapObj.
console.assert((new Map([[3, 3], [4, 4]])).size === 2);