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
clapton-0.0.19 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.49 node_modules/lodash/_baseInvoke.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
immosquare-cleaner-0.1.48 node_modules/lodash/_baseInvoke.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.12 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.11 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.10 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.9 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.8 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.7 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.6 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.5 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.4 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.3 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js
clapton-0.0.2 lib/clapton/javascripts/node_modules/lodash/_baseInvoke.js