Socket
Socket
Sign inDemoInstall

is-typed-array

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-typed-array

Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.


Version published
Weekly downloads
29M
decreased by-16.72%
Maintainers
2
Weekly downloads
 
Created

What is is-typed-array?

The is-typed-array npm package is a utility for checking if a given value is a typed array. Typed arrays are array-like objects that provide a mechanism for reading and writing raw binary data in memory buffers. This package helps in determining whether a variable is one of the typed array types, such as Int8Array, Uint8Array, Float32Array, etc.

What are is-typed-array's main functionalities?

Check if a value is a typed array

This feature allows you to check if a given value is a typed array. The function returns true if the value is one of the typed array types, and false otherwise.

const isTypedArray = require('is-typed-array');

const buffer = new ArrayBuffer(16);
const int16Array = new Int16Array(buffer);
const result = isTypedArray(int16Array); // true

Other packages similar to is-typed-array

Keywords

FAQs

Package last updated on 20 Mar 2016

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