This commit is contained in:
Mrhongxing committed 2026-11-12 02:48:46 +08:00
1 parent d1ee8edbbd
commit 7733a44362
429 files changed
+75840 -94

No files matched your search

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