YM
2025-08-07 e5c64590b336221f132ed28ae4ae6dca3e03055c
1
2
3
4
5
6
7
8
9
10
11
'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;
};