{"ScriptPreparationCode":"var array = [];\r\nfor (var i=0; i\u003C300; \u002B\u002Bi) {\r\n \tarray.push(\u002700\u0027 \u002B i);\r\n}\r\n\r\nfunction hasWithIndexOf(needle) {\r\n\treturn array.indexOf(needle) !== -1;\r\n}\r\n\r\nvar map = {};\r\narray.forEach(item =\u003E map[item] = true);\r\n\r\nfunction hasWithMap(needle) {\r\n\treturn needle in map;\r\n}\r\n\r\nvar map2 = new Map();\r\narray.forEach(item =\u003E map2.set(item, true));\r\n\r\nfunction hasWithMap2(needle) {\r\n\treturn map2.has(needle);\r\n}","TestCases":[{"Name":"indexOf","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithIndexOf(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"map","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithMap(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"map2","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithMap2(\u0027404\u0027);\r\n}","IsDeferred":false}]}