This commit is contained in:
jiahong
2026-03-27 02:12:03 +08:00
parent 00bd6eef13
commit 021b3f82db
949 changed files with 99966 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
'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;
};