🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@stdlib/math-base-assert-is-infinite

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/math-base-assert-is-infinite

Test if a double-precision floating-point numeric value is infinite.

0.2.2
latest
Version published
Weekly downloads
423K
-0.05%
Maintainers
0
Weekly downloads
 
Created

What is @stdlib/math-base-assert-is-infinite?

@stdlib/math-base-assert-is-infinite is a utility package that provides functions to check if a given value is infinite. This can be useful in various mathematical computations and validations where you need to ensure that values are within a finite range.

What are @stdlib/math-base-assert-is-infinite's main functionalities?

Check if a value is infinite

This feature allows you to check if a given value is either positive or negative infinity. It returns `true` if the value is infinite and `false` otherwise.

const isInfinite = require('@stdlib/math-base-assert-is-infinite');

console.log(isInfinite(Infinity)); // true
console.log(isInfinite(-Infinity)); // true
console.log(isInfinite(5)); // false
console.log(isInfinite(NaN)); // false

Other packages similar to @stdlib/math-base-assert-is-infinite

FAQs

Package last updated on 27 Jul 2024

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