{"ScriptPreparationCode":"\r\nvar arr = Array.from({ length: 5000 }, (item, index) =\u003E index);","TestCases":[{"Name":"Slice and splice","Code":"const changeIndex = 111;\r\nconst newTestArray = arr.slice();\r\nnewTestArray.splice(changeIndex, 1, 8080);","IsDeferred":false},{"Name":"Slice and concat","Code":"const changeIndex = 222;\r\nconst newTestArray = arr.slice(0, changeIndex).concat(13, arr.slice(changeIndex \u002B 1));","IsDeferred":false},{"Name":"Slice and spread","Code":"const changeIndex = 333;\r\nconst newTestArray = [ ...arr.slice(0, changeIndex), 42, ...arr.slice(changeIndex \u002B 1)];","IsDeferred":false},{"Name":"Spread and splice","Code":"const changeIndex = 444;\r\nconst newTestArray = [...arr];\r\nnewTestArray.splice(changeIndex, 1, 1111);","IsDeferred":false}]}