Socket
Socket
Sign inDemoInstall

@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.


Version published
Maintainers
4
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 16 Feb 2022

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