mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -33,7 +33,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
* });
|
||||
* // => { 'group1': ['a', 'c'], 'group2': ['b'] }
|
||||
*/
|
||||
var invertBy = createInverter(function(result, value, key) {
|
||||
var invertBy = createInverter((result, value, key) => {
|
||||
if (hasOwnProperty.call(result, value)) {
|
||||
result[value].push(key);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user