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

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

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

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
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
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

Keywords

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

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