Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/is-finite
ES2015 Number.isFinite() ponyfill
https://github.com/sindresorhus/is-finite
Last synced: about 2 months ago
JSON representation
ES2015 Number.isFinite() ponyfill
- Host: GitHub
- URL: https://github.com/sindresorhus/is-finite
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2014-08-04T15:37:37.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2021-04-07T07:09:34.000Z (over 3 years ago)
- Last Synced: 2024-04-14T11:09:13.802Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 19
- Watchers: 7
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- awesome-ponyfills - is-finite - [`Number.isFinite`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite) (Numbers)
- es6-tools - `Number.isFinite`
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);
//=> truenumIsFinite(Infinity);
//=> false
```