update snippets 0-All

This commit is contained in:
Stefan Feješ
2017-12-25 14:49:52 +01:00
parent 5b23bade1c
commit db9e613058
33 changed files with 155 additions and 63 deletions

View File

@ -6,5 +6,8 @@ Create a `Set` with all values of `a` and `b` and convert to an array.
```js
const union = (a, b) => Array.from(new Set([...a, ...b]));
// union([1,2,3], [4,3,2]) -> [1,2,3,4]
```
```js
union([1,2,3], [4,3,2]) -> [1,2,3,4]
```