• File: isFinite.js
  • Full Path: /var/www/nodejs/simo_meps_file_script/node_modules/math-intrinsics/isFinite.js
  • Date Modified: 02/28/2025 8:55 PM
  • File size: 262 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'use strict';

var $isNaN = require('./isNaN');

/** @type {import('./isFinite')} */
module.exports = function isFinite(x) {
	return (typeof x === 'number' || typeof x === 'bigint')
        && !$isNaN(x)
        && x !== Infinity
        && x !== -Infinity;
};