diff --git a/README.md b/README.md index c6b514682..44c0d7534 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# lodash v3.8.1 +# lodash v3.8.2 The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method. diff --git a/lodash._basepullat/README.md b/lodash._basepullat/README.md index 4a3024472..a783fa687 100644 --- a/lodash._basepullat/README.md +++ b/lodash._basepullat/README.md @@ -1,4 +1,4 @@ -# lodash._basepullat v3.8.1 +# lodash._basepullat v3.8.2 The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `basePullAt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. @@ -17,4 +17,4 @@ In Node.js/io.js: var basePullAt = require('lodash._basepullat'); ``` -See the [package source](https://github.com/lodash/lodash/blob/3.8.1-npm-packages/lodash._basepullat) for more details. +See the [package source](https://github.com/lodash/lodash/blob/3.8.2-npm-packages/lodash._basepullat) for more details. diff --git a/lodash._basepullat/index.js b/lodash._basepullat/index.js index cbe76c6f0..75cb20767 100644 --- a/lodash._basepullat/index.js +++ b/lodash._basepullat/index.js @@ -1,11 +1,7 @@ -/** - * lodash 3.8.1 (Custom Build) - * Build: `lodash modern modularize exports="npm" -o ./` - * Copyright 2012-2015 The Dojo Foundation - * Based on Underscore.js 1.8.3 - * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - * Available under MIT license - */ +/** Used to detect unsigned integer values. */ + +/** Used to detect unsigned integer values. */ +var reIsUint = /^\d+$/; /** Used for native method references. */ var arrayProto = Array.prototype; @@ -14,7 +10,7 @@ var arrayProto = Array.prototype; var splice = arrayProto.splice; /** - * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) + * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer) * of an array-like value. */ var MAX_SAFE_INTEGER = 9007199254740991; @@ -49,7 +45,7 @@ function basePullAt(array, indexes) { * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ 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; return value > -1 && value % 1 == 0 && value < length; } diff --git a/lodash._basepullat/package.json b/lodash._basepullat/package.json index 7b6393055..a988f133b 100644 --- a/lodash._basepullat/package.json +++ b/lodash._basepullat/package.json @@ -1,6 +1,6 @@ { "name": "lodash._basepullat", - "version": "3.8.1", + "version": "3.8.2", "description": "The modern build of lodash’s internal `basePullAt` as a module.", "homepage": "https://lodash.com/", "icon": "https://lodash.com/icon.svg",