JS: Set.prototype.size
New in JS2015.
setObj.size
-
Return the total count of values in setObj.
(new Set([4, 5, 6])).size === 3
size
is a getter property. 〔see Getter Setter Properties〕
New in JS2015.
setObj.size
(new Set([4, 5, 6])).size === 3
size
is a getter property.
〔see Getter Setter Properties〕