Maps
https://github.com/d3/d3/blob/master/API.md#maps
d3.map - create a new, empty map.
map.has - returns true if the map contains the given key.
map.get - get the value for the given key.
map.set - set the value for the given key.
map.remove - remove the entry for given key.
map.clear - remove all entries.
map.keys - get the array of keys.
map.values - get the array of values.
map.entries - get the array of entries (key-values objects).
map.each - call a function for each entry.
map.empty - returns false if the map has at least one entry.
map.size - compute the number of entries.
D3 Map
最新推荐文章于 2022-04-11 11:14:17 发布