Merge pull request #1172 from Alex-Sokolov/patch-3

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

View File

@ -18,4 +18,5 @@ const unionBy = (a, b, fn) => {
```js
unionBy([2.1], [1.2, 2.3], Math.floor); // [2.1, 1.2]
unionBy([{ id: 1 }, { id: 2 }], [{ id: 2 }, { id: 3 }], x => x.id) // [{ id: 1 }, { id: 2 }, { id: 3 }]
```