_.isFinite fix and tests

This commit is contained in:
Raymond May Jr
2012-03-25 11:08:23 -05:00
parent 705eff4826
commit e274235865
2 changed files with 12 additions and 1 deletions

View File

@@ -814,7 +814,7 @@
// Is a givin number finite?
_.isFinite = function(obj) {
return obj > -1/0 && obj < 1/0 && obj === -obj;
return obj > -1/0 && obj < 1/0 && obj === +obj;
};
// Is the given value `NaN`?