{"ScriptPreparationCode":null,"TestCases":[{"Name":"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},{"Name":"while","Code":"const arr = Array.from({ length: 20000 }, (_, i) =\u003E ({ property: i }))\r\nconst elementToFind = 15000;\r\n\r\nlet element = undefined;\r\nlet i = 0;\r\nwhile(element === undefined) {\r\n if(arr[i].property === elementToFind) {\r\n \telement = elementToFind;\r\n }\r\n i\u002B\u002B;\r\n}\r\n","IsDeferred":false}]}