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

lodash.istypedarray

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.istypedarray

The modern build of lodash’s `_.isTypedArray` as a module.

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
652K
increased by11.64%
Maintainers
5
Weekly downloads
 
Created

What is lodash.istypedarray?

The lodash.istypedarray package is a utility library that provides a simple function to check 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 is part of the Lodash library, which is a popular utility library for JavaScript.

What are lodash.istypedarray'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 a typed array and false otherwise. Typed arrays include instances of Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, and Float64Array.

const isTypedArray = require('lodash.istypedarray');

console.log(isTypedArray(new Uint8Array())); // true
console.log(isTypedArray([])); // false
console.log(isTypedArray(new Float32Array())); // true
console.log(isTypedArray({})); // false

Other packages similar to lodash.istypedarray

Keywords

FAQs

Package last updated on 25 Mar 2015

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