Apply new format to snippets and template

This commit is contained in:
Angelos Chalaris
2020-09-15 16:28:04 +03:00
parent 040efd4380
commit 53c16dbf65
401 changed files with 969 additions and 950 deletions

View File

@ -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]
```
```