{"ScriptPreparationCode":"var array = []\r\nfor (var i=0; i\u003C10000; \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\nfunction hasWithIncludes(needle) {\r\n\treturn array.includes(needle)\r\n}\r\n\r\nvar map = new Map\r\narray.forEach(item =\u003E map[item] = true)\r\n\r\n\r\nvar obj = {}\r\narray.forEach(item =\u003E obj[item] = true)\r\n\r\nfunction hasWithMap(needle) {\r\n return map.has(needle)\r\n}\r\n\r\nfunction hasWithIn(needle) {\r\n\treturn needle in map\r\n}","TestCases":[{"Name":"array.indexOf","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithIndexOf(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"map.has","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithMap(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"array.includes","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithIncludes(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"in obj","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithIn(\u0027404\u0027);\r\n}","IsDeferred":false}]}