{"ScriptPreparationCode":"const arr = Array.from({ length: 20000 }, (_, i) =\u003E ({ property: i }))\r\nconst elementToFind = 15000;","TestCases":[{"Name":"Array.find","Code":"const arr = Array.from({ length: 20000 }, (_, i) =\u003E ({ property: i }))\r\nconst elementToFind = 15000;\r\n\r\nconst element = arr.find((el) =\u003E el.property === elementToFind);","IsDeferred":false},{"Name":"For-loop","Code":"const arr = Array.from({ length: 20000 }, (_, i) =\u003E ({ property: i }))\r\nconst elementToFind = 15000;\r\n\r\nlet element = undefined;\r\n\r\nfor (let i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n\tif (arr[i].property === elementToFind) {\r\n element = arr[i];\r\n break;\r\n }\r\n}","IsDeferred":false}]}