{"ScriptPreparationCode":"var arr = new Array(15000);\r\nvar r = Math.floor(Math.random() * 15000)\r\n\r\narr = arr.map((e, i) =\u003E {\r\n return {\r\n id: i\r\n }\r\n})","TestCases":[{"Name":"map to create new array","Code":"arr.map(e =\u003E e \u0026\u0026 e.id === r ? {...e, targetted: true} : e)","IsDeferred":false},{"Name":"findIndex to create new array","Code":"var idx = arr.findIndex(e =\u003E e\u0026\u0026 e.id === r);\r\narr[idx] = {...arr[idx], targetted: true}","IsDeferred":false}]}