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

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

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

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

  • 0.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
78K
decreased by-80.74%
Maintainers
4
Weekly downloads
 
Created

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

@stdlib/math-base-assert-is-nan is a utility package that provides a function to check if a value is NaN (Not-a-Number). This is useful in various mathematical and data validation contexts where you need to ensure that the values you're working with are valid numbers.

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

Check if a value is NaN

This feature allows you to check if a given value is NaN. The function returns true if the value is NaN and false otherwise.

const isNaN = require('@stdlib/math-base-assert-is-nan');

console.log(isNaN(NaN)); // true
console.log(isNaN(5)); // false
console.log(isNaN('hello')); // false

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

Keywords

FAQs

Package last updated on 22 Aug 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