{"ScriptPreparationCode":"var map1 = new Map(Array.from({ length: 1000 }, (_, index) =\u003E [\u0060key${index}\u0060, \u0060value${index}\u0060]));\r\nvar map2 =new Map(Array.from({ length: 1000 }, (_, index) =\u003E [\u0060key${index \u002B 1000}\u0060, \u0060value${index \u002B 1000}\u0060]));\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}]}