Static
copyGet the value associated with the given key in the map.
If the given key does not exist in the map, the method will return undefined
.
The key of the desired value in the map.
Associate the given key with the given value in the map.
The key to associate with the value in the map.
The value to store in the map.
Associate the given key with the given value in the map only if the key has not been set in the map.
The key to associate with the value in the map.
The value to store in the map.
Optional
errorMessage: stringMessage to log if the key already has a value.
true
if the operation is successful, false
if it is not.
A map of string keys to some ValueType. Provides a type-safe wrapper around the native Map class for string-based keys.
Since
2.0.0