初始提交

This commit is contained in:
yinzhou.ma
2026-07-16 22:51:02 +08:00
commit 815ae9e356
939 changed files with 402135 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;
};