Ensure isIterateeCall works correctly with objects. [closes #917]

This commit is contained in:
jdalton
2015-02-02 20:36:45 -08:00
parent 67d9656e35
commit 41d08e123f
2 changed files with 82 additions and 70 deletions

View File

@@ -3757,7 +3757,7 @@
var length = object.length,
prereq = isLength(length) && isIndex(index, length);
} else {
prereq = type == 'string' && index in value;
prereq = type == 'string' && index in object;
}
return prereq && object[index] === value;
}