JS: Map.prototype.size
(new in JS: ECMAScript 2015)
mapObj.size
-
Return the total count of entries in mapObj.
(new Map([[3, "n3"], [4, "n4"]])).size === 2
JS Map.prototype
- JS: Map.prototype.constructor
- JS: Map.prototype.size
- JS: Map.prototype[Symbol.toStringTag]
- JS: Map.prototype.get
- JS: Map.prototype.set
- JS: Map.prototype.has
- JS: Map.prototype.delete
- JS: Map.prototype.clear
- JS: Map.prototype.forEach
- JS: Map.prototype.keys
- JS: Map.prototype.values
- JS: Map.prototype.entries