{"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","Code":"var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar output = Object.assign([], array, {2: 10});","IsDeferred":false},{"Name":"concat","Code":"var index = 2;\r\nvar array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nvar output = array.slice(0, index).concat(10, array.slice(index \u002B 1))","IsDeferred":false},{"Name":"slice and set","Code":"var index = 2;\r\nvar array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\r\nconst temp = array.slice(0)\r\ntemp[index] = 10\r\nvar output = temp","IsDeferred":false}]}