{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 10000; i\u002B\u002B) {\r\n arr[i] = i;\r\n}\r\nvar needToFindThis = Math.floor((Math.random() * 10000) \u002B 1);","TestCases":[{"Name":"ForEach","Code":"var indexFound = -1;\r\narr.forEach((item, index) =\u003E {\r\n if (item === needToFindThis) {\r\n\tindexFound = index;\r\n }\r\n});\r\n","IsDeferred":false},{"Name":"Find","Code":"var indexFound = arr.find((item, index) =\u003E {\r\n\tif (item === needToFindThis) {\r\n return index;\r\n\t}\r\n});","IsDeferred":false},{"Name":"For","Code":"var indexFound = -1;\r\nfor (var i = 0; i \u003C arr.length; i\u002B\u002B) { \r\n\tif (arr[i] === needToFindThis) { \r\n \tindexFound = i;\r\n }\r\n}","IsDeferred":false}]}