diff --git a/_baseWrapperValue.js b/_baseWrapperValue.js index c9d1b2bad..3e6990ad8 100644 --- a/_baseWrapperValue.js +++ b/_baseWrapperValue.js @@ -17,7 +17,7 @@ function baseWrapperValue(value, actions) { if (result instanceof LazyWrapper) { result = result.value(); } - return arrayReduce(actions, (result, action) => action.func.apply(action.thisArg, arrayPush([result], action.args)), result); + return arrayReduce(actions, (result, { func, thisArg, args }) => func.apply(thisArg, arrayPush([result], args)), result); } export default baseWrapperValue; diff --git a/_getMapData.js b/_getMapData.js index 6f55f4f79..7851b5403 100644 --- a/_getMapData.js +++ b/_getMapData.js @@ -8,8 +8,8 @@ import isKeyable from './_isKeyable.js'; * @param {string} key The reference key. * @returns {*} Returns the map data. */ -function getMapData(map, key) { - var data = map.__data__; +function getMapData({ __data__ }, key) { + var data = __data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;