JS: Set.prototype.size
(new in ECMAScript 2015)
mySet.size-
Return the total count of values in mySet.
console.assert((new Set([4, 5, 6])).size === 3);
(new in ECMAScript 2015)
mySet.sizeReturn the total count of values in mySet.
console.assert((new Set([4, 5, 6])).size === 3);