Update intersectionBy.md

This commit is contained in:
Alexander Sokolov
2020-07-25 11:40:27 +03:00
committed by GitHub
parent 2b6b92bc71
commit bab8f4b9ee

View File

@ -16,4 +16,5 @@ const intersectionBy = (a, b, fn) => {
```js
intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [2.1]
intersectionBy([{ title: 'Apple' }, { title: 'Orange' }], [{ title: 'Orange' }, { title: 'Melon' }], item => item.title) // [{ title: 'Orange' }]
```