Update union.md

This commit is contained in:
Angelos Chalaris
2020-02-18 22:15:25 +02:00
committed by GitHub
parent a5d7eb2c46
commit a92838a3fb

View File

@ -12,5 +12,5 @@ const union = (a, b) => Array.from(new Set([...a, ...b]));
``` ```
```js ```js
union([1, 2, 3], [4, 3, 2]); // [1,2,3,4] union([1, 2, 3], [4, 3, 2]); // [1, 2, 3, 4]
``` ```