APIs
Properties
.length
Getter
Return number of element in map
.keys
Getter
Return array of keys in map
Methods
.has(key)
Check if a key exists in map
Parameters (1)
key
: A key for checking
Return value
This method returns true
if the key has existed, otherwise is false
.
.get(key)
.set(key, value)
Last updated
Was this helpful?