Socket
Socket
Sign inDemoInstall

@stdlib/assert-has-float32array-support

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/assert-has-float32array-support

Detect native Float32Array support.


Version published
Maintainers
4
Created

What is @stdlib/assert-has-float32array-support?

The @stdlib/assert-has-float32array-support package is used to check if the environment supports the Float32Array data type. This can be useful for ensuring compatibility and functionality in environments where Float32Array might not be available.

What are @stdlib/assert-has-float32array-support's main functionalities?

Check Float32Array support

This feature allows you to check if the current environment supports the Float32Array data type. The code sample demonstrates how to use the package to perform this check and log the result.

const hasFloat32ArraySupport = require('@stdlib/assert-has-float32array-support');

if (hasFloat32ArraySupport()) {
  console.log('Float32Array is supported.');
} else {
  console.log('Float32Array is not supported.');
}

Other packages similar to @stdlib/assert-has-float32array-support

Keywords

FAQs

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