lodash._baseset
Advanced tools
Comparing version 4.2.0 to 4.2.1
34
index.js
/** | ||
* lodash 4.2.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.2.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -45,3 +45,4 @@ * Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
/** | ||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) | ||
* Used to resolve the | ||
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) | ||
* of values. | ||
@@ -70,13 +71,2 @@ */ | ||
/** | ||
* Casts `value` to a path array if it's not one. | ||
* | ||
* @private | ||
* @param {*} value The value to inspect. | ||
* @returns {Array} Returns the cast property path array. | ||
*/ | ||
function baseCastPath(value) { | ||
return isArray(value) ? value : stringToPath(value); | ||
} | ||
/** | ||
* The base implementation of `_.set`. | ||
@@ -92,3 +82,3 @@ * | ||
function baseSet(object, path, value, customizer) { | ||
path = isKey(path, object) ? [path] : baseCastPath(path); | ||
path = isKey(path, object) ? [path] : castPath(path); | ||
@@ -121,2 +111,13 @@ var index = -1, | ||
/** | ||
* Casts `value` to a path array if it's not one. | ||
* | ||
* @private | ||
* @param {*} value The value to inspect. | ||
* @returns {Array} Returns the cast property path array. | ||
*/ | ||
function castPath(value) { | ||
return isArray(value) ? value : stringToPath(value); | ||
} | ||
/** | ||
* Checks if `value` is a property name and not a property path. | ||
@@ -203,4 +204,5 @@ * | ||
/** | ||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. | ||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) | ||
* Checks if `value` is the | ||
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types) | ||
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) | ||
* | ||
@@ -207,0 +209,0 @@ * @static |
{ | ||
"name": "lodash._baseset", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "The internal lodash function `baseSet` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._baseset v4.2.0 | ||
# lodash._baseset v4.2.1 | ||
@@ -18,2 +18,2 @@ The internal [lodash](https://lodash.com/) function `baseSet` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash._baseset) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.2.1-npm-packages/lodash._baseset) for more details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10467
260