{"ScriptPreparationCode":"\r\nconst userArray = new Array(100000).fill({firstName: \u0027lorenzo\u0027, lastName: \u0027gomez\u0027});","TestCases":[{"Name":"Spread","Code":"const spreadCopy = [...userArray]","IsDeferred":false},{"Name":"ForEach with push","Code":"const forEachCopy = [];\r\nuserArray.forEach(user =\u003E {\r\n\tforEachCopy.push(user);\r\n});","IsDeferred":false},{"Name":"For with pre-allocated array","Code":"const preAllocatedArray = new Array(100000);\r\nfor(let i= 0; i \u003C 100000; i\u002B\u002B){\r\n preAllocatedArray[i] = userArray[i];\r\n}","IsDeferred":false}]}