Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: array,function,intermediate
|
||||
|
||||
Returns the symmetric difference between two arrays, using a provided function as a comparator.
|
||||
|
||||
Use `Array.prototype.filter()` and `Array.prototype.findIndex()` to find the appropriate values.
|
||||
- Use `Array.prototype.filter()` and `Array.prototype.findIndex()` to find the appropriate values.
|
||||
|
||||
```js
|
||||
const symmetricDifferenceWith = (arr, val, comp) => [
|
||||
@ -20,4 +20,4 @@ symmetricDifferenceWith(
|
||||
[1.9, 3, 0, 3.9],
|
||||
(a, b) => Math.round(a) === Math.round(b)
|
||||
); // [1, 1.2, 3.9]
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user