Remove nativeIsNaN use from the underscore build of _.isFinite. [closes #633]

This commit is contained in:
John-David Dalton
2014-07-16 08:48:18 -07:00
parent 3f2732be7b
commit 5a54c1520a
2 changed files with 29 additions and 28 deletions

View File

@@ -4637,7 +4637,8 @@
* // => false
*/
function isFinite(value) {
return nativeIsFinite(value) && !nativeIsNaN(parseFloat(value));
value = parseFloat(nativeIsFinite(value) && value);
return value == value;
}
/**