The (native) JavaScript Map object holds key-value pairs. Any value (both objects and primitive values) may be used as either a key or a value.
Documentation Map by Mozilla Contributors, licensed under CC-BY-SA 2.5.
Constructor
Variables
Methods
forEach(callback:(value:V, key:K, map:Map<K, V>) ‑> Void, ?thisArg:Any):Void
Calls callback
once for each key-value pair present in the js.Map
object, in insertion order.
If a thisArg
parameter is provided to forEach, it will be used as the
this
value for each callback.
has(key:K):Bool
A boolean asserting whether a value has been associated to the key in
the js.Map
object or not.