JavaScript: Map.prototype.size
New in JS2015.
mapObj.size
-
Return the total count of entries in mapObj.
console.log( (new Map([[3, "n3"], [4, "n4"]])).size === 2, );
New in JS2015.
mapObj.size
console.log( (new Map([[3, "n3"], [4, "n4"]])).size === 2, );