mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Bump to v4.13.0.
This commit is contained in:
@@ -31,11 +31,11 @@ define(['./_baseIndexOf', './toInteger'], function(baseIndexOf, toInteger) {
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
fromIndex = toInteger(fromIndex);
|
||||
if (fromIndex < 0) {
|
||||
fromIndex = nativeMax(length + fromIndex, 0);
|
||||
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
||||
if (index < 0) {
|
||||
index = nativeMax(length + index, 0);
|
||||
}
|
||||
return baseIndexOf(array, value, fromIndex);
|
||||
return baseIndexOf(array, value, index);
|
||||
}
|
||||
|
||||
return indexOf;
|
||||
|
||||
Reference in New Issue
Block a user