mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Remove fromIndex type check from _.includes.
This commit is contained in:
@@ -6117,7 +6117,7 @@
|
||||
function includes(collection, target, fromIndex, guard) {
|
||||
collection = isArrayLike(collection) ? collection : values(collection);
|
||||
var length = collection.length;
|
||||
if (guard || typeof fromIndex != 'number') {
|
||||
if (guard || !fromIndex) {
|
||||
fromIndex = 0;
|
||||
} else {
|
||||
fromIndex = toInteger(fromIndex);
|
||||
|
||||
Reference in New Issue
Block a user