{"ScriptPreparationCode":"var a = [],\r\n b = [],\r\n c = [],\r\n d = [],\r\n i;\r\n\r\nfor (i = 0; i \u003C 1000; i\u002B\u002B) {\r\n a.push(Math.floor(Math.random() * 1000) \u002B 1);\r\n b.push(Math.floor(Math.random() * 1000) \u002B 1);\r\n}\r\nvar union = (function(){\r\n \treturn function(){\r\n \tlet ob={};\r\n\t\tlet arr = [...arguments];\r\n \tlet len = arr.length;\r\n\t\tfor(let i=0;i\u003Clen;i\u002B\u002B)\r\n arr[i].forEach(num =\u003E ob[num] = 1);\r\n\t\treturn Object.keys(ob);\r\n }\r\n}());","TestCases":[{"Name":"Lodash","Code":"_.union(a,b)","IsDeferred":false},{"Name":"ObjectBased","Code":"union(a,b)","IsDeferred":false},{"Name":"Spread","Code":"[...new Set([...a,...b])];","IsDeferred":false}]}