{"ScriptPreparationCode":"const a = Array.from(Array(10000).keys()).concat(Array.from(Array(10000).keys()))\r\n\r\nfunction shuffle(array) {\r\n let currentIndex = array.length,\r\n randomIndex;\r\n\r\n // While there remain elements to shuffle.\r\n while (currentIndex \u003E 0) {\r\n\r\n // Pick a remaining element.\r\n randomIndex = Math.floor(Math.random() * currentIndex);\r\n currentIndex--;\r\n\r\n // And swap it with the current element.\r\n [array[currentIndex], array[randomIndex]] = [\r\n array[randomIndex], array[currentIndex]\r\n ];\r\n }\r\n\r\n return array;\r\n}\r\nconst arr = shuffle(a)","TestCases":[{"Name":"reverse \u0026 find","Code":"arr.reverse().find(x=\u003Ex===500)","IsDeferred":false},{"Name":"findLast","Code":"arr.findLast(x=\u003Ex===500)","IsDeferred":false}]}