{"ScriptPreparationCode":"var arrayToCopy = Array.from({ length: 1000 * 1000 }, _ =\u003E \u0022Hello\u0022);\r\nvar shallowCopy = [];","TestCases":[{"Name":"Array.concat","Code":"shallowCopy = arrayToCopy.concat();","IsDeferred":false},{"Name":"Slice with begin argument","Code":"shallowCopy = arrayToCopy.slice(0);","IsDeferred":false},{"Name":"Array.from","Code":"shallowCopy = Array.from(arrayToCopy);","IsDeferred":false},{"Name":"Array.toSpliced","Code":"shallowCopy = arrayToCopy.toSpliced();","IsDeferred":false},{"Name":"Spread operator","Code":"shallowCopy = [...arrayToCopy];","IsDeferred":false},{"Name":"For loop","Code":"for (let i = 0; i \u003C arrayToCopy.length; i\u002B\u002B)\r\n{\r\n shallowCopy.push(arrayToCopy[i]);\r\n}","IsDeferred":false}]}