Format snippets
This commit is contained in:
@ -14,6 +14,10 @@ const differenceWith = (arr, val, comp = (a, b) => a === b) =>
|
||||
```
|
||||
|
||||
```js
|
||||
differenceWith([1, 1.2, 1.5, 3, 0], [1.9, 3, 0], (a, b) => Math.round(a) === Math.round(b)); // [1, 1.2]
|
||||
differenceWith(
|
||||
[1, 1.2, 1.5, 3, 0],
|
||||
[1.9, 3, 0],
|
||||
(a, b) => Math.round(a) === Math.round(b)
|
||||
); // [1, 1.2]
|
||||
differenceWith([1, 1.2, 1.3], [1, 1.3, 1.5]); // [1.2]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user