{"ScriptPreparationCode":null,"TestCases":[{"Name":"for...in","Code":"const obj = {\r\n a: \u0027a\u0027,\r\n b: \u0027b\u0027,\r\n c: \u0027c\u0027,\r\n d: \u0027d\u0027,\r\n e: \u0027e\u0027,\r\n f: \u0027f\u0027\r\n}\r\n\r\nconst mapped = []\r\nfor (const key in obj) {\r\n mapped.push({\r\n key: key,\r\n val: obj[key]\r\n })\r\n}","IsDeferred":false},{"Name":"map","Code":"const obj = {\r\n a: \u0027a\u0027,\r\n b: \u0027b\u0027,\r\n c: \u0027c\u0027,\r\n d: \u0027d\u0027,\r\n e: \u0027e\u0027,\r\n f: \u0027f\u0027\r\n}\r\n\r\nconst mapped = Object.keys(obj).map((key) =\u003E ({\r\n key: key,\r\n val: obj[key]\r\n}))","IsDeferred":false}]}