MCPcopy
hub / github.com/lodash/lodash / baseInvoke

Function baseInvoke

lodash.js:3260–3265  ·  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 arguments to invoke the method

(object, path, args)

Source from the content-addressed store, hash-verified

3258 * @returns {*} Returns the result of the invoked method.
3259 */
3260 function baseInvoke(object, path, args) {
3261 path = castPath(path, object);
3262 object = parent(object, path);
3263 var func = object == null ? object : object[toKey(last(path))];
3264 return func == null ? undefined : apply(func, object, args);
3265 }
3266
3267 /**
3268 * The base implementation of `_.isArguments`.

Callers 1

lodash.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