mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Ensure isIterateeCall works correctly with objects. [closes #917]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user