{"ScriptPreparationCode":null,"TestCases":[{"Name":"Foreach","Code":"const map1 = new Map();\r\nmap1.set(\u0022abc\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022def\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\nmap1.set(\u0022def\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022ghi\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\nmap1.set(\u0022ghi\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022jkl\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\nmap1.set(\u0022jkl\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022mno\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\n\r\nconst modules = []\r\nmap1.forEach(({ count, componentInfo }) =\u003E {\r\n modules.push({\r\n count,\r\n name: \u0060${componentInfo.manufacturerName} ${componentInfo.name} (${componentInfo.ratingStc}W) modules\u0060.trim(),\r\n });\r\n});\r\n","IsDeferred":false},{"Name":"Array.from","Code":"const map1 = new Map();\r\nmap1.set(\u0022abc\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022def\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\nmap1.set(\u0022def\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022ghi\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\nmap1.set(\u0022ghi\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022jkl\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\nmap1.set(\u0022jkl\u0022, {\r\n \u0022count\u0022: 10,\r\n \u0022componentInfo\u0022: {\r\n \u0022manufacturerName\u0022: \u0022\u0022,\r\n \u0022name\u0022: \u0022mno\u0022,\r\n \u0022ratingStc\u0022: 123\r\n }\r\n })\r\nconst panels = Array.from(map1.values()).map(({ count, componentInfo }) =\u003E {\r\n return {\r\n count,\r\n name: \u0060${componentInfo.manufacturerName} ${componentInfo.name} (${componentInfo.ratingStc}W) modules\u0060.trim(),\r\n };\r\n })","IsDeferred":false}]}