mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Bump to v4.7.0.
This commit is contained in:
@@ -13,6 +13,7 @@ define(['./_indexOfNaN', './toInteger'], function(indexOfNaN, toInteger) {
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to search.
|
||||
* @param {*} value The value to search for.
|
||||
@@ -35,7 +36,11 @@ define(['./_indexOfNaN', './toInteger'], function(indexOfNaN, toInteger) {
|
||||
var index = length;
|
||||
if (fromIndex !== undefined) {
|
||||
index = toInteger(fromIndex);
|
||||
index = (index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1)) + 1;
|
||||
index = (
|
||||
index < 0
|
||||
? nativeMax(length + index, 0)
|
||||
: nativeMin(index, length - 1)
|
||||
) + 1;
|
||||
}
|
||||
if (value !== value) {
|
||||
return indexOfNaN(array, index, true);
|
||||
|
||||
Reference in New Issue
Block a user