{"ScriptPreparationCode":"var myMap = new Map();\r\nfor (let i = 0; i \u003C 200; i\u002B\u002B) {\r\n const key = {};\r\n const value = {value: Math.random()};\r\n myMap.set(key, value);\r\n}","TestCases":[{"Name":"forEach \u002B clear","Code":"myMap.forEach((value, key) =\u003E {\r\n console.log(value, key);\r\n});\r\nmyMap.clear();","IsDeferred":false},{"Name":"forEach \u002B delete","Code":"myMap.forEach((value, key) =\u003E {\r\n console.log(value, key);\r\n myMap.delete(key);\r\n});","IsDeferred":false},{"Name":"for...of \u002B clear","Code":"for (const entry of myMap) {\r\n console.log(entry[1], entry[0]);\r\n}\r\nmyMap.clear();","IsDeferred":false},{"Name":"for...of \u002B delete","Code":"for (const entry of myMap) {\r\n console.log(entry[1], entry[0]);\r\n myMap.delete(entry[0]);\r\n}","IsDeferred":false}]}