diff --git a/README.md b/README.md index f09196f88..49dc80c31 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash-es v4.17.10 +# lodash-es v4.17.11 The [Lodash](https://lodash.com/) library exported as [ES](http://www.ecma-international.org/ecma-262/6.0/) modules. @@ -7,4 +7,4 @@ Generated using [lodash-cli](https://www.npmjs.com/package/lodash-cli): $ lodash modularize exports=es -o ./ ``` -See the [package source](https://github.com/lodash/lodash/tree/4.17.10-es) for more details. +See the [package source](https://github.com/lodash/lodash/tree/4.17.11-es) for more details. diff --git a/_baseMergeDeep.js b/_baseMergeDeep.js index 2c2c65765..756d63344 100644 --- a/_baseMergeDeep.js +++ b/_baseMergeDeep.js @@ -74,7 +74,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta if (isArguments(objValue)) { newValue = toPlainObject(objValue); } - else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) { + else if (!isObject(objValue) || isFunction(objValue)) { newValue = initCloneObject(srcValue); } } diff --git a/_hasUnicodeWord.js b/_hasUnicodeWord.js index b2a026093..eecc5ddff 100644 --- a/_hasUnicodeWord.js +++ b/_hasUnicodeWord.js @@ -1,5 +1,5 @@ /** Used to detect strings that need a more robust regexp to match words. */ -var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; +var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; /** * Checks if `string` contains a word composed of Unicode symbols. diff --git a/_safeGet.js b/_safeGet.js index be5bfc391..e08241a72 100644 --- a/_safeGet.js +++ b/_safeGet.js @@ -7,9 +7,11 @@ * @returns {*} Returns the property value. */ function safeGet(object, key) { - return key == '__proto__' - ? undefined - : object[key]; + if (key == '__proto__') { + return; + } + + return object[key]; } export default safeGet; diff --git a/lodash.default.js b/lodash.default.js index 13f787360..388431d09 100644 --- a/lodash.default.js +++ b/lodash.default.js @@ -45,7 +45,7 @@ import toInteger from './toInteger.js'; import lodash from './wrapperLodash.js'; /** Used as the semantic version number. */ -var VERSION = '4.17.10'; +var VERSION = '4.17.11'; /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_KEY_FLAG = 2; diff --git a/package.json b/package.json index 9a2ebacc4..88e93da40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lodash-es", - "version": "4.17.10", + "version": "4.17.11", "description": "Lodash exported as ES modules.", "keywords": "es6, modules, stdlib, util", "homepage": "https://lodash.com/custom-builds",