Ensure isIterateeCall works with NaN values.

This commit is contained in:
jdalton
2015-02-18 00:33:51 -08:00
parent cb132fcbf4
commit 15398555b3
2 changed files with 112 additions and 2 deletions

View File

@@ -3837,7 +3837,8 @@
} else {
prereq = type == 'string' && index in object;
}
return prereq && object[index] === value;
var other = object[index];
return prereq && (value === value ? value === other : other !== other);
}
/**