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

@stdlib/assert-is-float32array

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-is-float32array

Test if a value is a Float32Array.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
250K
decreased by-40.33%
Maintainers
4
Weekly downloads
 
Created

What is @stdlib/assert-is-float32array?

The @stdlib/assert-is-float32array package provides utilities to check if a value is a Float32Array. This can be useful in various scenarios where type checking is necessary, such as validating function inputs or ensuring data integrity.

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

Check if a value is a Float32Array

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

const isFloat32Array = require('@stdlib/assert-is-float32array');

const arr = new Float32Array(10);
console.log(isFloat32Array(arr)); // true

const notArr = [1, 2, 3];
console.log(isFloat32Array(notArr)); // false

Other packages similar to @stdlib/assert-is-float32array

Keywords

FAQs

Package last updated on 03 Oct 2023

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