Travis build: 1374

This commit is contained in:
30secondsofcode
2018-01-24 10:54:56 +00:00
parent e6e07ff6ea
commit 929c07aabe
3 changed files with 58 additions and 3 deletions

View File

@ -5,8 +5,7 @@ Returns a list of elements that exist in both arrays, using a provided comparato
Use `Array.filter()` and `Array.findIndex()` in combination with the provided comparator to determine intersecting values.
```js
const intersectionWith = (a, b, comp) =>
a.filter(x => b.findIndex(y => comp(x, y)) !== -1);
const intersectionWith = (a, b, comp) => a.filter(x => b.findIndex(y => comp(x, y)) !== -1);
```
```js