
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
lodash.isfinite
Advanced tools
The lodash.isfinite package is a utility function that checks if a given value is a finite number. It is part of the Lodash library, which is a popular utility library for JavaScript. This specific function helps in determining whether a value is a finite number, which can be useful in various scenarios such as data validation, mathematical computations, and more.
Check if a value is a finite number
This feature allows you to check if a given value is a finite number. The function returns true if the value is a finite number, and false otherwise. This can be useful for validating inputs and ensuring that calculations are performed on valid numbers.
const isFinite = require('lodash.isfinite');
console.log(isFinite(10)); // true
console.log(isFinite(Infinity)); // false
console.log(isFinite('10')); // false
console.log(isFinite(NaN)); // false
The is-finite package is a simple utility that checks if a value is a finite number. It is similar to lodash.isfinite in functionality but is a standalone package without the additional utilities provided by Lodash. It is lightweight and can be a good choice if you only need this specific functionality.
The lodash method _.isFinite
exported as a Node.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.isfinite
In Node.js:
var isFinite = require('lodash.isfinite');
See the documentation or package source for more details.
FAQs
The lodash method `_.isFinite` exported as a module.
The npm package lodash.isfinite receives a total of 1,053,821 weekly downloads. As such, lodash.isfinite popularity was classified as popular.
We found that lodash.isfinite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.