From 10bcb584ce9ead2838a24adcf2f6c5e757ac1af3 Mon Sep 17 00:00:00 2001 From: 30secondsofcode <30secondsofcode@gmail.com> Date: Sat, 10 Nov 2018 11:06:44 +0000 Subject: [PATCH] Travis build: 761 --- README.md | 2 +- docs/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f17000b68..b27c0d5e9 100644 --- a/README.md +++ b/README.md @@ -2806,7 +2806,7 @@ const toHash = (object, key) => Examples ```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' }]; diff --git a/docs/index.html b/docs/index.html index 3c08101c6..8e7f052d7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -526,7 +526,7 @@ console.log< (acc, data, index) => ((acc[!key ? index : data[key]] = data), acc), {} ); -
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' }];