{"ScriptPreparationCode":"var arr = [];\r\nvar i = 0;\r\n\r\nwhile (i \u003C= 1E5) arr[i] = i\u002B\u002B;","TestCases":[{"Name":"Array.prototype.find","Code":"const item = arr.find(item =\u003E item == 1E5);","IsDeferred":false},{"Name":"Array.prototype.findIndex","Code":"const index = arr.findIndex(item =\u003E item == 1E5);","IsDeferred":false},{"Name":"classic for loop","Code":"function forfinder(arr) {\r\n var cl = arr.length\r\n for(var i = 0; i \u003C cl; i\u002B\u002B) {\r\n if(arr[i] == 1e5) {\r\n return i\r\n }\r\n }\r\n return -i\r\n}\r\nconst index = forfinder(arr)","IsDeferred":false}]}