Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

ES2015 Number.isFinite() ponyfill

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.6M
decreased by-17.57%
Maintainers
1
Weekly downloads
 
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 07 Apr 2021

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