New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@stdlib/assert-has-float32array-support

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/assert-has-float32array-support

Detect native Float32Array support.

0.2.2
latest
Version published
Weekly downloads
354K
-16.09%
Maintainers
4
Weekly downloads
 
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

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