{"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":"arr.findIndex((itm) =\u003E itm.id === foo);","IsDeferred":false},{"Name":"forOf loop","Code":"let output = -1\r\nfor (const [index, item] of arr.entries()) {\r\n if (item.id = foo) {\r\n output = index;\r\n break\r\n }\r\n}\r\n \r\n ","IsDeferred":false}]}