Returns an iterable of entries in the map.
Removes all elements from the Map.
true if an element in the Map existed and has been removed, or false if the element does not exist.
Returns an iterable of key, value pairs for every entry in the map.
Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
获取指定键的计数值,若键不存在则返回 0
需要查询的键
boolean indicating whether an element with the specified key exists or not.
Returns an iterable of keys in the map
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
Returns an iterable of values in the map
静态from静态group
计数图
from从键数组或键-对象对数组创建实例,简化初始化过程count方法对指定键进行计数,并可关联存储对象getCount方法获取指定键的计数值,若键不存在则返回 0getObject方法获取指定键关联的对象,若键不存在或未关联对象则返回 undefined