mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -24,10 +24,6 @@ import baseRest from './_baseRest.js';
|
||||
* _.map([['a', '2'], ['c', '0']], _.methodOf(object));
|
||||
* // => [2, 0]
|
||||
*/
|
||||
var methodOf = baseRest(function(object, args) {
|
||||
return function(path) {
|
||||
return baseInvoke(object, path, args);
|
||||
};
|
||||
});
|
||||
var methodOf = baseRest((object, args) => path => baseInvoke(object, path, args));
|
||||
|
||||
export default methodOf;
|
||||
|
||||
Reference in New Issue
Block a user