lodash._baseget
Advanced tools
Comparing version 3.7.1 to 3.7.2
12
index.js
/** | ||
* lodash 3.7.1 (Custom Build) <https://lodash.com/> | ||
* lodash 3.7.2 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
@@ -27,7 +27,7 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
} | ||
var index = -1, | ||
var index = 0, | ||
length = path.length; | ||
while (object != null && ++index < length) { | ||
object = object[path[index]]; | ||
while (object != null && index < length) { | ||
object = object[path[index++]]; | ||
} | ||
@@ -38,3 +38,3 @@ return (index && index == length) ? object : undefined; | ||
/** | ||
* Converts `value` to an object if it is not one. | ||
* Converts `value` to an object if it's not one. | ||
* | ||
@@ -73,5 +73,5 @@ * @private | ||
var type = typeof value; | ||
return type == 'function' || (!!value && type == 'object'); | ||
return !!value && (type == 'object' || type == 'function'); | ||
} | ||
module.exports = baseGet; |
{ | ||
"name": "lodash._baseget", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"description": "The modern build of lodash’s internal `baseGet` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._baseget v3.7.1 | ||
# lodash._baseget v3.7.2 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseGet` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.7.1-npm-packages/lodash._baseget) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.7.2-npm-packages/lodash._baseget) 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
4663