1 var baseInvoke = require('./internal/baseInvoke'),
2 rest = require('./rest');
5 * Invokes the method at `path` of `object`.
10 * @param {Object} object The object to query.
11 * @param {Array|string} path The path of the method to invoke.
12 * @param {...*} [args] The arguments to invoke the method with.
13 * @returns {*} Returns the result of the invoked method.
16 * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
18 * _.invoke(object, 'a[0].b.c.slice', 1, 3);
21 var invoke = rest(baseInvoke);
23 module.exports = invoke;