{"ScriptPreparationCode":"const first = new Set([...Array(10000)].map(it =\u003E String(~~(Math.random() * 10000))));\r\nconst second = new Set([...Array(10000)].map(it =\u003E String(~~(Math.random() * 200000))));\r\n\r\nclass MySet extends Set {\r\n union(other) {\r\n other.forEach(el =\u003E {\r\n this.add(el);\r\n });\r\n return this;\r\n }\r\n}\r\n\r\nconst firstSet = new MySet(first);\r\nconst secondSet = new MySet(second);","TestCases":[{"Name":"Javascript Set Union","Code":"first.union(second)","IsDeferred":false},{"Name":"Javascript Set Union using add","Code":"firstSet.union(second)","IsDeferred":false}]}