Merge pull request #1171 from Alex-Sokolov/patch-2
Update intersectionBy.md
This commit is contained in:
@ -16,4 +16,5 @@ const intersectionBy = (a, b, fn) => {
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1]
|
intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1]
|
||||||
|
intersectionBy([{ title: 'Apple' }, { title: 'Orange' }], [{ title: 'Orange' }, { title: 'Melon' }], x => x.title) // [{ title: 'Orange' }]
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user