Bump to v3.0.6.

This commit is contained in:
jdalton
2015-04-16 00:23:00 -07:00
committed by John-David Dalton
parent b368027e2c
commit cfca777a28
33 changed files with 276 additions and 270 deletions

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.0.5 (Custom Build) <https://lodash.com/>
* lodash 3.0.6 (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>
@@ -23,6 +23,9 @@ var BIND_FLAG = 1,
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
/** Used to detect unsigned integer values. */
var reIsUint = /^\d+$/;
/* Native method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
nativeMin = Math.min;
@@ -333,7 +336,7 @@ function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, a
* @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;
}