File "isFinite.js"

Full Path: C:/wamp64/www/INTERPRETE2/backend/node_modules/ipaddr.js/isFinite.js
File size: 262 bytes
MIME-type: text/plain
Charset: utf-8

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