{"ScriptPreparationCode":"var a = [\u0027a\u0027, \u0027b\u0027, \u0027c\u0027];\r\nvar b = [\u0027b\u0027, \u0027d\u0027, \u0027a\u0027, \u0027e\u0027, \u0027f\u0027];\r\n\r\nvar customUnion = (x, y) =\u003E {\r\n const existSet = new Set(x)\r\n const res = [...x]\r\n y.forEach((z) =\u003E {if (!existSet.has(z)) { res.push(z) }})\r\n return res\r\n}","TestCases":[{"Name":"Lodash union","Code":"var c = _.union(a, b).join(\u0027 \u0027);","IsDeferred":false},{"Name":"Js set","Code":"var c = [...new Set([...a ,...b])].join(\u0027 \u0027);","IsDeferred":false},{"Name":"custom union","Code":"var c = customUnion(a,b).join(\u0027 \u0027)","IsDeferred":false}]}