SET !

  1. const set1 = new Set([2,1,3]);
  2. const set2 = new Set([4,5,6,3]);

  3. let union = [...[...set1],...[...set2]];

  4. let t = new Set(union.sort( (a,b) => a-b));
trie un set !