Travis build: 761

This commit is contained in:
30secondsofcode
2018-11-10 11:06:44 +00:00
parent 996dcdc22d
commit 306a2d0aae
2 changed files with 2 additions and 2 deletions

View File

@@ -2806,7 +2806,7 @@ const toHash = (object, key) =>
<summary>Examples</summary>
```js
toHash([4, 3, 2, 1]); // { 0: 4, 1: 3, 2: 2, 1: 1 }
toHash([4, 3, 2, 1]); // { 0: 4, 1: 3, 2: 2, 3: 1 }
toHash([{ a: 'label' }], 'a'); // { label: { a: 'label' } }
// A more in depth example:
let users = [{ id: 1, first: 'Jon' }, { id: 2, first: 'Joe' }, { id: 3, first: 'Moe' }];