{"ScriptPreparationCode":"function shuffle(array) {\r\n let currentIndex = array.length, randomIndex;\r\n\r\n // While there remain elements to shuffle...\r\n while (currentIndex != 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 return array;\r\n}\r\n\r\nvar a = shuffle(Array(100000).fill(undefined).map((_, i) =\u003E i));\r\nvar b = a.reduce((acc, el) =\u003E { acc[el] = true; return acc }, {});\r\nvar c = new Set(a);\r\nvar d = new Map(a.map(el =\u003E [el, true]));\r\nvar elements = [1, 100, 1000, 24, 56, 78, 23, 5643, 863, 2679, 9999, 45, 5832, 7510, 3756];","TestCases":[{"Name":"includes","Code":"return elements.map(el =\u003E a.includes(el))","IsDeferred":false},{"Name":"hash","Code":"return elements.map(el =\u003E b[el])","IsDeferred":false},{"Name":"set","Code":"return elements.map(el =\u003E c.has(el))","IsDeferred":false},{"Name":"map","Code":"return elements.map(el =\u003E d.get(el))","IsDeferred":false}]}