Socket
Socket
Sign inDemoInstall

is-typedarray

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-typedarray

Detect whether or not an object is a Typed Array


Version published
Weekly downloads
25M
increased by1.8%
Maintainers
1
Install size
5.07 kB
Created
Weekly downloads
 

Package description

What is is-typedarray?

The is-typedarray npm package is a utility that allows developers to check if a given value is a TypedArray. TypedArrays are a feature in JavaScript that allows for handling binary data. This package provides a simple and straightforward way to determine if an object is one of the TypedArray types, such as Int8Array, Uint8Array, Float32Array, etc.

What are is-typedarray's main functionalities?

Check if a value is a TypedArray

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

const isTypedArray = require('is-typedarray');
const buffer = new ArrayBuffer(10);
const typedArray = new Uint8Array(buffer);
const result = isTypedArray(typedArray); // true

Other packages similar to is-typedarray

Readme

Source

is-typedarray locked

Detect whether or not an object is a Typed Array.

Usage

NPM

isTypedArray(array)

Returns true when array is a Typed Array, and false when it is not.

License

MIT. See LICENSE.md for details.

Keywords

FAQs

Last updated on 17 May 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc