Snippet format update
To match the starter (for the migration)
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
### toHash
|
||||
---
|
||||
title: toHash
|
||||
tags: array,intermediate
|
||||
---
|
||||
|
||||
Reduces a given Array-like into a value hash (keyed data store).
|
||||
|
||||
@@ -27,4 +30,4 @@ managers.forEach(
|
||||
}, toHash(users, 'id')))
|
||||
);
|
||||
managers; // [ { manager:1, employees: [ { id: 2, first: "Joe" }, { id: 3, first: "Moe" } ] } ]
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user