
Security News
Next.js Patches Critical Middleware Vulnerability (CVE-2025-29927)
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
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.
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
The is-number package checks if a value is a number, which includes both finite and infinite numbers. It provides a broader check compared to is-finite, which only checks for finite numbers.
The lodash.isfinite package is a part of the Lodash library that provides a similar functionality to is-finite. It checks if a value is a finite number, but it is part of a larger utility library, making it useful if you need additional functionalities provided by Lodash.
The is-finite-x package is another alternative that checks if a value is a finite number. It is similar to is-finite but may have different implementation details or additional features.
ES2015
Number.isFinite()
ponyfill
$ npm install is-finite
var numIsFinite = require('is-finite');
numIsFinite(4);
//=> true
numIsFinite(Infinity);
//=> false
FAQs
ES2015 Number.isFinite() ponyfill
The npm package is-finite receives a total of 4,330,181 weekly downloads. As such, is-finite popularity was classified as popular.
We found that is-finite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.