Sha256: f2389f6a59dd1ad801529e66de31bf67b19b002adf6a42eadab8cd2c47e4abe7

Contents?: true

Size: 634 Bytes

Versions: 265

Compression:

Stored size: 634 Bytes

Contents

var baseInvoke = require('./_baseInvoke'),
    baseRest = require('./_baseRest');

/**
 * Invokes the method at `path` of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the method to invoke.
 * @param {...*} [args] The arguments to invoke the method with.
 * @returns {*} Returns the result of the invoked method.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
 *
 * _.invoke(object, 'a[0].b.c.slice', 1, 3);
 * // => [2, 3]
 */
var invoke = baseRest(baseInvoke);

module.exports = invoke;

Version data entries

265 entries across 263 versions & 30 rubygems

Version Path
trusty-cms-6.3.1 node_modules/lodash/invoke.js
immosquare-cleaner-0.1.51 node_modules/lodash/invoke.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/invoke.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/invoke.js
immosquare-cleaner-0.1.50 node_modules/lodash/invoke.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/lodash/invoke.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/lodash/invoke.js
immosquare-cleaner-0.1.49 node_modules/lodash/invoke.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/lodash/invoke.js
immosquare-cleaner-0.1.48 node_modules/lodash/invoke.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/lodash/invoke.js