Remove remaining rest helper use.

This commit is contained in:
John-David Dalton
2017-01-09 15:36:35 -08:00
parent 648722f1a6
commit aacfefc752
25 changed files with 53 additions and 165 deletions

View File

@@ -1,5 +1,4 @@
import baseInvoke from './_baseInvoke.js';
import baseRest from './_baseRest.js';
/**
* The opposite of `_.method`; this method creates a function that invokes
@@ -24,6 +23,8 @@ import baseRest from './_baseRest.js';
* _.map([['a', '2'], ['c', '0']], _.methodOf(object));
* // => [2, 0]
*/
const methodOf = baseRest((object, args) => path => baseInvoke(object, path, args));
function methodOf(object, ...args) {
return path => baseInvoke(object, path, args);
}
export default methodOf;