{"ScriptPreparationCode":"var reports = (new Array(200)).fill(null).reduce((prev, newVal) =\u003E {prev.push({type: Math.random() \u002B \u0027\u0027}); return prev; }, [{ type: \u0027core\u0027 }]);\r\nvar SERVICES = [{ type: \u0027core\u0027 }, { type: \u0027foo\u0027 },{ type: \u0027bar\u0027 }];\r\n\r\n","TestCases":[{"Name":"Array.includes()","Code":"var has;\r\nvar array = SERVICES.map((service) =\u003E service.type);\r\nfor (report of reports) {\r\n if(array.includes(report.type)) {\r\n has = true;\r\n }\r\n}","IsDeferred":false},{"Name":"Object[key]","Code":"var has;\r\nvar object = SERVICES.reduce((result, service) =\u003E { result[service.type] = service.type; return result; }, {});\r\nfor (report of reports) {\r\n if(object[report.type]) {\r\n has = true;\r\n }\r\n}\r\n\r\n","IsDeferred":false},{"Name":"Set.has()","Code":"var has;\r\nvar set = new Set(SERVICES.map((service) =\u003E service.type));\r\nfor (report of reports) {\r\n if(set.has(report.type)) {\r\n has = true;\r\n }\r\n}\r\n\r\n\r\n","IsDeferred":false}]}