can-cid/map/map
Exports the native Map or a polyfill.
Map
Use
This module exports the native Map
object if Map is present. If not, a Map-like constructor function is exported that supports O(1) insertion and
deletion by adding a can-cid property to objects passed to .set.
var Map = require("can-util/js/cid-map/cid-map");
var map = new Map();
var obj = {};
map.set(obj, "value");
map.get(obj) //-> "value";
The following methods and properties are supported by the polyfill:
clear()delete(key)forEach(callback[,thisArg])get(key)has(key)set(key, value)size