{"ScriptPreparationCode":"var arr = [];\r\nvar arrRev = [];\r\nvar i = 0;\r\nvar j = 0;\r\nvar LENGTH = 500;\r\n\r\nwhile (i \u003C= LENGTH) arr[i] = i\u002B\u002B;\r\nwhile (j \u003C= LENGTH) arrRev[j] = j\u002B\u002B;","TestCases":[{"Name":"findIndex","Code":"const index = arr.findIndex(item =\u003E item == LENGTH);","IsDeferred":false},{"Name":"findIndex reverse","Code":"const index = arrRev.length - arrRev.reverse().findIndex(item =\u003E item == LENGTH) - 1;","IsDeferred":false}]}