🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@stdlib/assert-is-uint16array

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/assert-is-uint16array

Test if a value is a Uint16Array.

0.2.2
latest
Source
npm
Version published
Weekly downloads
363K
-7.25%
Maintainers
0
Weekly downloads
 
Created

What is @stdlib/assert-is-uint16array?

The @stdlib/assert-is-uint16array package is a utility for checking if a value is a Uint16Array. It is part of the larger @stdlib library, which provides a wide range of utilities for scientific computing in JavaScript.

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

Check if a value is a Uint16Array

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

const isUint16Array = require('@stdlib/assert-is-uint16array');

const arr = new Uint16Array(10);
console.log(isUint16Array(arr)); // true

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

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

Keywords

stdlib

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