Remove fromIndex type check from _.includes.

This commit is contained in:
John-David Dalton
2015-08-25 23:12:12 -07:00
parent 9121ab95ea
commit 790d6331f8
2 changed files with 5 additions and 7 deletions

View File

@@ -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);