From bd65bb67e25a79b019d745b7262b2008ce2adb15 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 16 Nov 2016 01:59:39 +0100 Subject: incrementally verify denoms The denominations are not stored in a separate object store. --- node_modules/lodash/_baseInvoke.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'node_modules/lodash/_baseInvoke.js') diff --git a/node_modules/lodash/_baseInvoke.js b/node_modules/lodash/_baseInvoke.js index 3d6bca5db..49bcf3c35 100644 --- a/node_modules/lodash/_baseInvoke.js +++ b/node_modules/lodash/_baseInvoke.js @@ -1,6 +1,5 @@ var apply = require('./_apply'), castPath = require('./_castPath'), - isKey = require('./_isKey'), last = require('./last'), parent = require('./_parent'), toKey = require('./_toKey'); @@ -16,12 +15,9 @@ var apply = require('./_apply'), * @returns {*} Returns the result of the invoked method. */ function baseInvoke(object, path, args) { - if (!isKey(path, object)) { - path = castPath(path); - object = parent(object, path); - path = last(path); - } - var func = object == null ? object : object[toKey(path)]; + 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); } -- cgit v1.2.3