* 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)
| 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`. |