{"ScriptPreparationCode":"window.arr = new Array(2000).fill({value: \u0027old\u0027});\r\narr[100] = {value: \u0027toReplace\u0027};","TestCases":[{"Name":"map","Code":"const editIndex = arr.findIndex(item =\u003E item.value === \u0027toReplace\u0027);\r\nconst newArr = arr.map((item, index) =\u003E index === editIndex ? {value: \u0027new\u0027} : item);","IsDeferred":false},{"Name":"slice","Code":"const editIndex = arr.findIndex(item =\u003E item.value === \u0027toReplace\u0027);\r\nconst newArr = [\r\n\t...arr.slice(0, editIndex),\r\n {value: \u0027new\u0027},\r\n\t...arr.slice(editIndex \u002B 1),\r\n];","IsDeferred":false}]}