lodash.property
Advanced tools
Comparing version 4.1.1 to 4.1.2
29
index.js
/** | ||
* lodash 4.1.1 (Custom Build) <https://lodash.com/> | ||
* lodash 4.1.2 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -20,2 +20,13 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
/** | ||
* 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 `_.get` without support for default values. | ||
@@ -29,3 +40,3 @@ * | ||
function baseGet(object, path) { | ||
path = isKey(path, object) ? [path + ''] : baseToPath(path); | ||
path = isKey(path, object) ? [path + ''] : baseCastPath(path); | ||
@@ -68,14 +79,2 @@ var index = 0, | ||
/** | ||
* The base implementation of `_.toPath` which only converts `value` to a | ||
* path if it's not one. | ||
* | ||
* @private | ||
* @param {*} value The value to process. | ||
* @returns {Array} Returns the property path array. | ||
*/ | ||
function baseToPath(value) { | ||
return isArray(value) ? value : stringToPath(value); | ||
} | ||
/** | ||
* Checks if `value` is a property name and not a property path. | ||
@@ -117,3 +116,3 @@ * | ||
* @memberOf _ | ||
* @type Function | ||
* @type {Function} | ||
* @category Lang | ||
@@ -120,0 +119,0 @@ * @param {*} value The value to check. |
{ | ||
"name": "lodash.property", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "The lodash method `_.property` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.property v4.1.1 | ||
# lodash.property v4.1.2 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.property` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#property) or [package source](https://github.com/lodash/lodash/blob/4.1.1-npm-packages/lodash.property) for more details. | ||
See the [documentation](https://lodash.com/docs#property) or [package source](https://github.com/lodash/lodash/blob/4.1.2-npm-packages/lodash.property) 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
6740
145