fix naming

This commit is contained in:
Stefan Feješ
2017-12-17 15:41:31 +01:00
parent bebe9ec3c4
commit f559030eac
73 changed files with 18 additions and 18 deletions

View File

@ -3,6 +3,6 @@
Use ES6 `Set` and the `...rest` operator to discard all duplicated values.
```js
const unique = arr => [...new Set(arr)];
const uniqueValuesOfArray = arr => [...new Set(arr)];
// unique([1,2,2,3,4,4,5]) -> [1,2,3,4,5]
```