|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
262 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var $isNaN = require('./isNaN');
|
|---|
| 4 |
|
|---|
| 5 | /** @type {import('./isFinite')} */
|
|---|
| 6 | module.exports = function isFinite(x) {
|
|---|
| 7 | return (typeof x === 'number' || typeof x === 'bigint')
|
|---|
| 8 | && !$isNaN(x)
|
|---|
| 9 | && x !== Infinity
|
|---|
| 10 | && x !== -Infinity;
|
|---|
| 11 | };
|
|---|
| 12 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.