mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Apply arrow function transform.
This commit is contained in:
2
keyBy.js
2
keyBy.js
@@ -29,7 +29,7 @@ import createAggregator from './_createAggregator.js';
|
||||
* _.keyBy(array, 'dir');
|
||||
* // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
|
||||
*/
|
||||
var keyBy = createAggregator(function(result, value, key) {
|
||||
var keyBy = createAggregator((result, value, key) => {
|
||||
baseAssignValue(result, key, value);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user