Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: array,intermediate
|
||||
|
||||
Returns an object with the unique values of an array as keys and their frequencies as the values.
|
||||
|
||||
Use `Array.prototype.reduce()` to map unique values to an object's keys, adding to existing keys every time the same value is encountered.
|
||||
- Use `Array.prototype.reduce()` to map unique values to an object's keys, adding to existing keys every time the same value is encountered.
|
||||
|
||||
```js
|
||||
const frequencies = arr =>
|
||||
|
||||
Reference in New Issue
Block a user