{"ScriptPreparationCode":null,"TestCases":[{"Name":"splice","Code":"var index = 2;\r\nvar array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar output = [\r\n ...array.slice(0, index),\r\n 10,\r\n ...array.slice(index \u002B 1)\r\n];","IsDeferred":false},{"Name":"Object.assign spread","Code":"var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar output = Object.assign([...array], {2: 10});","IsDeferred":false},{"Name":"Object.assign slice","Code":"var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar output = Object.assign(array.slice(), {2: 10});","IsDeferred":false},{"Name":"Object.assign orig","Code":"var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar output = Object.assign([...array], {2: 10});","IsDeferred":false},{"Name":"Slice mutable","Code":"var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar newArray = array.slice();\r\nnewArray[2] = 10;\r\nvar output = newArray;","IsDeferred":false},{"Name":"slice mutable spread","Code":"var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar newArray = [...array];\r\nnewArray[2] = 10;\r\nvar output = newArray;","IsDeferred":false}]}