isFinite.js 230 B

1234567
  1. import { _isFinite } from './_setup.js';
  2. import isSymbol from './isSymbol.js';
  3. // Is a given object a finite number?
  4. export default function isFinite(obj) {
  5. return !isSymbol(obj) && _isFinite(obj) && !isNaN(parseFloat(obj));
  6. }