{"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 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},{"Name":"Array update with slice and assign","Code":"const clone = list.slice();\r\n clone[index] = n;","IsDeferred":false}]}