{"ScriptPreparationCode":"let array = [];\r\nfor (var i=0; i\u003C300; \u002B\u002Bi) {\r\n \tarray.push(\u002700\u0027 \u002B i);\r\n}\r\n\r\nfunction hasWithFind(needle) {\r\n\treturn array.find((entry) =\u003E entry == needle) !== undefined;\r\n}\r\n\r\nfunction hasWithIndexOf(needle) {\r\n\treturn array.indexOf(needle) !== -1;\r\n}\r\n\r\nfunction hasWithFilter(needle) {\r\n\treturn array.filter((entry) =\u003E entry == needle).length \u003E -1;\r\n}\r\n\r\nlet map = {};\r\narray.forEach(item =\u003E map[item] = true);\r\n\r\nfunction hasWithMap(needle) {\r\n\treturn needle in map;\r\n}","TestCases":[{"Name":"find","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithFind(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"indexOf","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithIndexOf(\u0027404\u0027);\r\n}","IsDeferred":false},{"Name":"filter","Code":"for (var i=0; i\u003C100; \u002B\u002Bi) {\r\n\thasWithFilter(\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}]}