Readonly
entryReadonly
isReturns whether this map is empty.
This is equivalent to this.size === 0
and this.entryCount === 0
.
Readonly
sizeThe number of characters in this map. This is different from entryCount.
This is equivalent to [...this.keys()].reduce((count, range) => count + range.max - range.min + 1, 0)
.
Returns a new map with all values mapped by the given function.
If no function is given, the identity function is used.
Invokes the given callback for every item of the character map.
This method is implemented more efficiently than other iterator based methods, so chose forEach
where every
possible.
The number of entires in this map.
This is different from size. In general, you should use size, because it has the same semantics as
Set#size
andMap#size
.This is equivalent to
[...this.entries()].length
.