isFinite.js 249 B

123456789
  1. var _setup = require('./_setup.js');
  2. var isSymbol = require('./isSymbol.js');
  3. // Is a given object a finite number?
  4. function isFinite(obj) {
  5. return !isSymbol(obj) && _setup._isFinite(obj) && !isNaN(parseFloat(obj));
  6. }
  7. module.exports = isFinite;