{"ScriptPreparationCode":"var arr = [];\r\nvar i = 0;\r\nwhile (i \u003C= 10) arr[i] = (\u0027\u0027 \u002B i\u002B\u002B);\r\nvar testSet = new Set(arr);\r\nvar testObj = {};\r\nfor (const a of arr) {\r\n testObj[a] = true;\r\n}\r\n\r\n\r\nvar randomKeys = [];\r\ni = 0;\r\nwhile (i \u003C= 50) {\r\n randomKeys.push(\u0027\u0027\u002BMath.round(Math.random(50000) \u002B 5000));\r\n i\u002B\u002B;\r\n}","TestCases":[{"Name":"indexOf","Code":"for (const key of randomKeys) {const index = arr.indexOf(key);}","IsDeferred":false},{"Name":"includes","Code":"for (const key of randomKeys) {const index = arr.includes(key);}","IsDeferred":false},{"Name":"find","Code":"for (const key of randomKeys) {const index = arr.find(item =\u003E item == key);}","IsDeferred":false},{"Name":"findIndex","Code":"for (const key of randomKeys) {const index = arr.findIndex(item =\u003E item == key);}","IsDeferred":false},{"Name":"set","Code":"for (const key of randomKeys) {const index = testSet.has(key);}","IsDeferred":false},{"Name":"object lookup","Code":"for (const key of randomKeys) {const index = testObj[key];}","IsDeferred":false}]}