mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Remove nativeIsNaN use from the underscore build of _.isFinite. [closes #633]
This commit is contained in:
3
dist/lodash.underscore.js
vendored
3
dist/lodash.underscore.js
vendored
@@ -4637,7 +4637,8 @@
|
||||
* // => false
|
||||
*/
|
||||
function isFinite(value) {
|
||||
return nativeIsFinite(value) && !nativeIsNaN(parseFloat(value));
|
||||
value = parseFloat(nativeIsFinite(value) && value);
|
||||
return value == value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user