Philipp Horstenkamp f2bd1a8cab
All checks were successful
Lint / pre-commit Linting (push) Successful in 22s
Dep update
2025-04-08 22:00:41 +02:00

13 lines
262 B
JavaScript

'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;
};