Bump to v3.7.2.

This commit is contained in:
jdalton
2015-05-19 07:55:41 -07:00
committed by John-David Dalton
parent b8368d698d
commit 7af5442cff
10 changed files with 24 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
# lodash._baseget v3.7.1
# lodash._baseget v3.7.2
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) internal `baseGet` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseGet = require('lodash._baseget');
```
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.

View File

@@ -1,5 +1,5 @@
/**
* 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 ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -24,17 +24,17 @@ function baseGet(object, path, pathKey) {
if (pathKey !== undefined && pathKey in toObject(object)) {
path = [pathKey];
}
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++]];
}
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.
*
* @private
* @param {*} value The value to process.
@@ -68,7 +68,7 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
return type == 'function' || (!!value && type == 'object');
return !!value && (type == 'object' || type == 'function');
}
module.exports = baseGet;

View File

@@ -1,6 +1,6 @@
{
"name": "lodash._baseget",
"version": "3.7.1",
"version": "3.7.2",
"description": "The modern build of lodashs internal `baseGet` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",