{"ScriptPreparationCode":"var arr = new Array(15000);\r\narr.fill({ id: 0 });\r\narr = arr.map((el, idx) =\u003E el.id = idx);\r\nvar foo = Math.floor(Math.random() * 15000);","TestCases":[{"Name":"findIndex","Code":"const idx = arr.findIndex((itm) =\u003E itm.id === foo);\r\nconsole.log(idx)","IsDeferred":false},{"Name":"for loop","Code":"for (let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n if (arr[i].id === foo) {\r\n console.log(i)\r\n break;\r\n }\r\n}","IsDeferred":false}]}