lodash.set
Advanced tools
Comparing version 3.7.1 to 3.7.2
10
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 ./` | ||
@@ -20,3 +20,3 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
*/ | ||
var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; | ||
var MAX_SAFE_INTEGER = 9007199254740991; | ||
@@ -32,3 +32,3 @@ /** | ||
function isIndex(value, length) { | ||
value = +value; | ||
value = typeof value == 'number' ? value : parseFloat(value); | ||
length = length == null ? MAX_SAFE_INTEGER : length; | ||
@@ -59,3 +59,3 @@ return value > -1 && value % 1 == 0 && value < length; | ||
/** | ||
* Converts `value` to an object if it is not one. | ||
* Converts `value` to an object if it's not one. | ||
* | ||
@@ -94,3 +94,3 @@ * @private | ||
var type = typeof value; | ||
return type == 'function' || (!!value && type == 'object'); | ||
return !!value && (type == 'object' || type == 'function'); | ||
} | ||
@@ -97,0 +97,0 @@ |
{ | ||
"name": "lodash.set", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"description": "The modern build of lodash’s `_.set` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.set v3.7.1 | ||
# lodash.set v3.7.2 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.set` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#set) or [package source](https://github.com/lodash/lodash/blob/3.7.1-npm-packages/lodash.set) for more details. | ||
See the [documentation](https://lodash.com/docs#set) or [package source](https://github.com/lodash/lodash/blob/3.7.2-npm-packages/lodash.set) 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
6816