mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Remove remaining rest helper use.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import baseInvoke from './_baseInvoke.js';
|
||||
import baseRest from './_baseRest.js';
|
||||
|
||||
/**
|
||||
* Invokes the method at `path` of `object`.
|
||||
@@ -19,6 +18,8 @@ import baseRest from './_baseRest.js';
|
||||
* _.invoke(object, 'a[0].b.c.slice', 1, 3);
|
||||
* // => [2, 3]
|
||||
*/
|
||||
const invoke = baseRest(baseInvoke);
|
||||
function invoke(object, path, ...args) {
|
||||
return baseInvoke(object, path, args);
|
||||
}
|
||||
|
||||
export default invoke;
|
||||
|
||||
Reference in New Issue
Block a user