MCPcopy Create free account
hub / github.com/deployd/deployd / baseInvoke

Function baseInvoke

test-app/public/sinon.js:13844–13849  ·  view source on GitHub ↗

* The base implementation of `_.invoke` without support for individual * method arguments. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the method to invoke. * @param {Array} args The argumen

(object, path, args)

Source from the content-addressed store, hash-verified

13842 * @returns {*} Returns the result of the invoked method.
13843 */
13844 function baseInvoke(object, path, args) {
13845 path = castPath(path, object);
13846 object = parent(object, path);
13847 var func = object == null ? object : object[toKey(last(path))];
13848 return func == null ? undefined : apply(func, object, args);
13849 }
13850
13851 /**
13852 * The base implementation of `_.isArguments`.

Callers 1

sinon.jsFile · 0.85

Calls 5

castPathFunction · 0.85
parentFunction · 0.85
toKeyFunction · 0.85
lastFunction · 0.85
applyFunction · 0.85

Tested by

no test coverage detected