{"ScriptPreparationCode":null,"TestCases":[{"Name":"map","Code":"const arr = Array.from({ length: 10_000 }, (_, i) =\u003E i)\r\nconst newArr = arr.map(e=\u003Ee)","IsDeferred":false},{"Name":"array.from","Code":"const arr = Array.from({ length: 10_000 }, (_, i) =\u003E i)\r\nconst newArr = Array.from(arr)","IsDeferred":false},{"Name":"for loop","Code":"const arr = Array.from({ length: 10_000 }, (_, i) =\u003E i)\r\nlet newArr = [];\r\nfor(let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n newArr[i] = arr[i];\r\n}\r\n","IsDeferred":false},{"Name":"foreach","Code":"const arr = Array.from({ length: 10_000 }, (_, i) =\u003E i)\r\nlet newArr = []\r\narr.forEach(e =\u003E {\r\n newArr.push(e)\r\n})","IsDeferred":false},{"Name":"slice","Code":"const arr = Array.from({ length: 10_000 }, (_, i) =\u003E i)\r\nconst newArr = arr.slice()","IsDeferred":false},{"Name":"spread","Code":"const arr = Array.from({ length: 10_000 }, (_, i) =\u003E i)\r\nconst newArr = [...arr]","IsDeferred":false}]}