mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Ensure isIterateeCall doesn't error if index is an object without a toString method. [closes #994]
This commit is contained in:
@@ -3839,8 +3839,11 @@
|
||||
} else {
|
||||
prereq = type == 'string' && index in object;
|
||||
}
|
||||
var other = object[index];
|
||||
return prereq && (value === value ? value === other : other !== other);
|
||||
if (prereq) {
|
||||
var other = object[index];
|
||||
return value === value ? value === other : other !== other;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user