isFinite.js 192 B

12345
  1. 'use strict';
  2. var $isNaN = require('./isNaN');
  3. module.exports = function (x) { return (typeof x === 'number' || typeof x === 'bigint') && !$isNaN(x) && x !== Infinity && x !== -Infinity; };