{"ScriptPreparationCode":"var array = [];\r\nfor (var i = 0; i \u003C 300; \u002B\u002Bi) {\r\n array.push(\u002700\u0027 \u002B i);\r\n}\r\n\r\nfunction hasWithIndexOf(needle) {\r\n return 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 array.map(item =\u003E {\r\n if (item === needle) {\r\n return true;\r\n }\r\n return false;\r\n })\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}]}