Security update for permissions_by_term
[yaffs-website] / node_modules / uncss / node_modules / lodash / invoke.js
1 var baseInvoke = require('./internal/baseInvoke'),
2     rest = require('./rest');
3
4 /**
5  * Invokes the method at `path` of `object`.
6  *
7  * @static
8  * @memberOf _
9  * @category 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.
14  * @example
15  *
16  * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
17  *
18  * _.invoke(object, 'a[0].b.c.slice', 1, 3);
19  * // => [2, 3]
20  */
21 var invoke = rest(baseInvoke);
22
23 module.exports = invoke;