This commit is contained in:
DeSqBlocki
2026-08-15 08:34:09 +02:00
parent eda2b2964a
commit 9377403f61
879 changed files with 118808 additions and 2 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;
};