{"ScriptPreparationCode":null,"TestCases":[{"Name":"Splice","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = testArray.splice(0);","IsDeferred":false},{"Name":"Slice","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = testArray.slice();","IsDeferred":false},{"Name":"Concat","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = testArray.concat();","IsDeferred":false},{"Name":"Spread","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = [...testArray];","IsDeferred":false},{"Name":"For-i","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = [];\r\nfor (let i = 0; i \u003C testArray.length; i\u002B\u002B) {\r\n newTestArray[i] = testArray[i];\r\n}","IsDeferred":false},{"Name":"For-of","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = [];\r\nfor (const value of testArray) {\r\n newTestArray[i] = value;\r\n}","IsDeferred":false},{"Name":"While","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = [];\r\nlet i = -1;\r\nwhile (\u002B\u002Bi \u003C testArray.length) {\r\n newTestArray[i] = testArray[i];\r\n}","IsDeferred":false},{"Name":"From","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = Array.from(testArray);","IsDeferred":false},{"Name":"Lodash","Code":"const testArray = [1, 2, 3];\r\nconst newTestArray = _.clone(testArray);","IsDeferred":false}]}