Socket
Socket
Sign inDemoInstall

is-finite

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-finite

ES6 Number.isFinite() ponyfill


Version published
Maintainers
1
Created

What is is-finite?

The is-finite npm package is a simple utility that checks if a given value is a finite number. It is a lightweight alternative to the native Number.isFinite function, providing a straightforward way to determine if a value is a finite number.

What are is-finite's main functionalities?

Check if a value is finite

This feature allows you to check if a given value is a finite number. The code sample demonstrates checking various values, including a finite number, Infinity, and a string.

const isFinite = require('is-finite');

console.log(isFinite(10)); // true
console.log(isFinite(Infinity)); // false
console.log(isFinite('10')); // false

Other packages similar to is-finite

Keywords

FAQs

Package last updated on 20 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc