Codacy issue fixes

This commit is contained in:
Angelos Chalaris
2018-08-02 12:02:29 +03:00
parent 205424cf03
commit 45de1d6377
5 changed files with 8 additions and 8 deletions

View File

@ -7,7 +7,7 @@ The comparator function takes four arguments: the values of the two elements bei
```js
const filterNonUniqueBy = (arr, fn) =>
arr.filter((v, i) => arr.every((x, j) => (i == j) == fn(v, x, i, j)));
arr.filter((v, i) => arr.every((x, j) => (i === j) === fn(v, x, i, j)));
```
```js