lodash-compat
Advanced tools
Comparing version 3.9.2 to 3.9.3
@@ -0,1 +1,4 @@ | ||
/** Used to detect unsigned integer values. */ | ||
var reIsUint = /^\d+$/; | ||
/** | ||
@@ -16,3 +19,3 @@ * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) | ||
function isIndex(value, length) { | ||
value = typeof value == 'number' ? value : parseFloat(value); | ||
value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1; | ||
length = length == null ? MAX_SAFE_INTEGER : length; | ||
@@ -19,0 +22,0 @@ return value > -1 && value % 1 == 0 && value < length; |
{ | ||
"name": "lodash-compat", | ||
"version": "3.9.2", | ||
"version": "3.9.3", | ||
"description": "The compatibility build of lodash modular utilities.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash-compat v3.9.2 | ||
# lodash-compat v3.9.3 | ||
@@ -31,3 +31,3 @@ The [compatibility build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules. | ||
See the [package source](https://github.com/lodash/lodash-compat/tree/3.9.2-npm) for more details. | ||
See the [package source](https://github.com/lodash/lodash-compat/tree/3.9.3-npm) for more details. | ||
@@ -34,0 +34,0 @@ **Note:**<br> |
Sorry, the diff of this file is too big to display
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
844134
24583