Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/is-finite

ES2015 Number.isFinite() ponyfill
https://github.com/sindresorhus/is-finite

Last synced: 3 months ago
JSON representation

ES2015 Number.isFinite() ponyfill

Awesome Lists containing this project

README

        

Deprecated as this is now natively available in all modern browsers and Node.js versions.

---

# is-finite

> ES2015 [`Number.isFinite()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite) [ponyfill](https://ponyfill.com)

## Install

```
$ npm install is-finite
```

## Usage

```js
var numIsFinite = require('is-finite');

numIsFinite(4);
//=> true

numIsFinite(Infinity);
//=> false
```