Merge pull request #486 from rexxars/indexby-thisarg-docfix

Fixed `_.indexBy` `thisArg` example in documentation. [ci skip]
This commit is contained in:
John-David Dalton
2014-02-22 10:03:19 -08:00

View File

@@ -1725,7 +1725,7 @@ _.indexBy(keys, 'dir');
_.indexBy(keys, function(key) { return String.fromCharCode(key.code); });
// => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
_.indexBy(characters, function(key) { this.fromCharCode(key.code); }, String);
_.indexBy(keys, function(key) { return this.fromCharCode(key.code); }, String);
// => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
```