Update symmetricDifferenceBy.md

This commit is contained in:
Alexander Sokolov
2020-07-24 20:24:06 +03:00
committed by GitHub
parent 69f927fd95
commit b244bba646

View File

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