{"ScriptPreparationCode":"const ITERATIONS = 500000;\r\nvar index = ITERATIONS/2;\r\nvar n = Math.random();\r\n\r\nvar list = [];\r\nfor (let i = 0; i \u003C length; i \u002B= 1) {\r\n list.push(Math.random());\r\n}","TestCases":[{"Name":"Array clone with spread operator","Code":"const clone = [...list];","IsDeferred":false},{"Name":"Array clone with slice","Code":"const clone = list.slice();","IsDeferred":false},{"Name":"Array addition with spread operator","Code":"const clone = [...list, n];","IsDeferred":false},{"Name":"Array addition with slice and push","Code":"const clone = list.slice();\r\nclone.push(n);","IsDeferred":false},{"Name":"Array removal with spread operator","Code":"const clone = [\r\n ...list.slice(0, index),\r\n ...list.slice(index \u002B 1),\r\n ];","IsDeferred":false},{"Name":"Array removal with slice and splice","Code":"const clone = list.slice();\r\nclone.splice(index, 1);","IsDeferred":false},{"Name":"Array update with spread operator","Code":"const clone = [\r\n ...list.slice(0, index),\r\n n,\r\n ...list.slice(index \u002B 1),\r\n ];","IsDeferred":false}]}