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