UNPKG

350 BJavaScriptView Raw
1'use strict';
2var global = require('../internals/global');
3
4var globalIsFinite = global.isFinite;
5
6// `Number.isFinite` method
7// https://tc39.es/ecma262/#sec-number.isfinite
8// eslint-disable-next-line es/no-number-isfinite -- safe
9module.exports = Number.isFinite || function isFinite(it) {
10 return typeof it == 'number' && globalIsFinite(it);
11};