Lines Matching full:map
26 let res = new Map();
27 let map = new fastmap(); variable
30 res.set("test isEmpty ture:", map.isEmpty() == true)
32 map.set("a", "aa");
33 map.set("b", "bb");
36 res.set("test isEmpty false:", map.isEmpty() == false)
38 res.set("test get:", map.length == 2 && map.get("a") == "aa" && map.get("b") == "bb");
40 res.set("test hasKey and hasValue:", map.hasKey("a") && map.hasKey("b") && map.hasValue("aa") &&
41 map.hasValue("bb") && !map.hasKey("c") && !map.hasValue("cc"));
43 map.set("c", "cc");
45 let iteratorKey = map.keys();
49 let iteratorValues = map.values();
53 let iteratorEntries = map.entries();
62 for (const item of map) {
67 for (const item in map) {
72 function TestForEach(value, key, map) { argument
73 flag = map.get(key) === value;
76 map.forEach(TestForEach);
80 dmap.setAll(map);
92 map["aa"] = 3;
96 res.set("test map throw error", flag);
170 res.set("test map throw error", flag);
172 function elements(value, key, map) { argument