Re-tag array snippets
This commit is contained in:
@ -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]
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user