setup-maven-cached/node_modules/underscore/modules/isFinite.js

8 lines
230 B
JavaScript
Raw Permalink Normal View History

2022-06-28 16:39:30 +08:00
import { _isFinite } from './_setup.js';
import isSymbol from './isSymbol.js';
// Is a given object a finite number?
export default function isFinite(obj) {
return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));
}