Lines Matching refs:key
24 map.set('key', 'value');
25 print(map.get('key'))
37 let key = Number.parseFloat("1392210229");
38 map.set(key, "success");
39 let value = map.get(key);
43 function check(key) {
44 let irHash = ArkTools.hashCode(key);
45 let rtHash = ArkTools.hashCode(key, true);
47 throw new Error("Mismatch hash for " + key + ": expected " + rtHash + ", but got " + irHash);
125 map.forEach((value, key) => {
126 print("Key: " + key + ", Value: " + value);
158 keysArray.forEach(key => {
159 print("Keys: " + key);
169 const [key, value] = entry;
170 print("Key: " + key + ", Value: " + value);
173 combinedMap.forEach((value, key) => {
174 const retrievedValue = combinedMap.get(key);
175 const hasKey = combinedMap.has(key);
176 newMap.set(key, value);
177 print("Key: " + key + ", Retrieved Value: " + retrievedValue);
178 print("Key: " + key + ", Exists: " + hasKey);
179 combinedMap.delete(key);
203 testMap.set("key", "value1");
204 testMap.set("key", "value2");
219 testMap.forEach((value, key) => {
220 if (key === "key2") {
223 print("Key: " + key + ", Value: " + value);