Re-tag array snippets

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-18 14:58:09 +03:00
parent 821f442bec
commit c2fdfac6ce
43 changed files with 48 additions and 48 deletions

View File

@ -1,6 +1,6 @@
---
title: differenceBy
tags: array,function,intermediate
tags: array,intermediate
---
Returns the difference between two arrays, after applying the provided function to each array element of both.
@ -17,4 +17,4 @@ const differenceBy = (a, b, fn) => {
```js
differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor); // [1]
differenceBy([{ x: 2 }, { x: 1 }], [{ x: 1 }], v => v.x); // [2]
```
```