Files
screeps-deploy-action/node_modules/math-intrinsics/isFinite.js
Philipp Horstenkamp 786d2c8e74
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m19s
Run npm-install and add npm install as a post update option
2025-12-16 01:01:56 +01: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;
};