Merge pull request #1171 from Alex-Sokolov/patch-2

Update intersectionBy.md
This commit is contained in:
Isabelle Viktoria Maciohsek
2020-07-31 22:46:44 +03:00
committed by GitHub

View File

@ -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' }]
``` ```