{"ScriptPreparationCode":"var arr = [];\r\nvar i = 0;\r\nvar arrRev = [];\r\nvar j = 0;\r\nvar SIZE = 1E5;\r\nvar middle = Math.floor(SIZE / 2);\r\n\r\nwhile (i \u003C= SIZE) arr[i] = i\u002B\u002B;\r\nwhile (j \u003C= SIZE) arrRev[j] = j\u002B\u002B;\r\n","TestCases":[{"Name":"Array.prototype.findIndex","Code":"const index = arr.findIndex(item =\u003E item == middle);","IsDeferred":false},{"Name":"Array.prototype.findIndex (rev)","Code":"const index = arrRev.length - arrRev.reverse().findIndex(item =\u003E item == middle) - 1;","IsDeferred":false}]}