{"ScriptPreparationCode":"var map1 = new Map([\r\n [\u0027key1\u0027, \u0027value1\u0027],\r\n [\u0027key2\u0027, \u0027value2\u0027],\r\n [\u0027key3\u0027, \u0027value3\u0027]\r\n]);\r\n\r\nvar map2 = new Map([\r\n [\u0027key4\u0027, \u0027value4\u0027],\r\n [\u0027key5\u0027, \u0027value5\u0027],\r\n [\u0027key6\u0027, \u0027value6\u0027]\r\n]);","TestCases":[{"Name":"spread","Code":"const keysFromMap1 = Array.from(map1.keys());\r\nconst keysFromMap2 = Array.from(map2.keys());\r\n\r\n// Concatenate keys from both maps\r\nconst allKeys = [...keysFromMap1, ...keysFromMap2];\r\n\r\nconsole.log(allKeys);","IsDeferred":false},{"Name":"push","Code":"const allKeys = [];\r\n\r\n// Add keys from map1 to allKeys\r\nfor (const key of map1.keys()) {\r\n allKeys.push(key);\r\n}\r\n\r\n// Add keys from map2 to allKeys\r\nfor (const key of map2.keys()) {\r\n allKeys.push(key);\r\n}\r\nconsole.log(allKeys);","IsDeferred":false}]}