number-is-finite.js 336 B

12345678910
  1. var global = require('../internals/global');
  2. var globalIsFinite = global.isFinite;
  3. // `Number.isFinite` method
  4. // https://tc39.es/ecma262/#sec-number.isfinite
  5. // eslint-disable-next-line es/no-number-isfinite -- safe
  6. module.exports = Number.isFinite || function isFinite(it) {
  7. return typeof it == 'number' && globalIsFinite(it);
  8. };