Sha256: c84423133be6432565b8a64496b372ffd237fe12cc9b6b82e311c9af8ebaf3cc

Contents?: true

Size: 789 Bytes

Versions: 270

Compression:

Stored size: 789 Bytes

Contents

var apply = require('./_apply'),
    castPath = require('./_castPath'),
    last = require('./last'),
    parent = require('./_parent'),
    toKey = require('./_toKey');

/**
 * 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 with.
 * @returns {*} Returns the result of the invoked method.
 */
function baseInvoke(object, path, args) {
  path = castPath(path, object);
  object = parent(object, path);
  var func = object == null ? object : object[toKey(last(path))];
  return func == null ? undefined : apply(func, object, args);
}

module.exports = baseInvoke;

Version data entries

270 entries across 269 versions & 28 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.59 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.58 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.57 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.56 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.55 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.54 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.53 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.52 node_modules/lodash/_baseInvoke.js
trusty-cms-6.3.1 node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.51 node_modules/lodash/_baseInvoke.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/_baseInvoke.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.50 node_modules/lodash/_baseInvoke.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js