Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report

is-typed-array 1.1.13

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.
Package summary
Share
0
issues
0
licenses
Package created
7 May 2015
Version published
2 Feb 2024
Maintainers
2
Total deps
0
Direct deps
0
License
MIT
Generating a report...
Hold on while we generate a fresh audit report for this package.

Frequently Asked Questions

What does is-typed-array do?

"Is-typed-array" is an npm package that checks whether a given value is a JavaScript Typed Array. It operates across realms/iframes and is independent of instanceof checks, mutable properties, and the ES6 Symbol.toStringTag.

How do you use is-typed-array?

To use "is-typed-array" in your JavaScript project, install the package in your working environment and require it in your code. You can then use the function isTypedArray() to check whether a variable is a Typed Array. Here is an example usage.

For instance, initialize the function:

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

Then utilize it through the following assertions:

assert.ok(isTypedArray(new Int8Array())); // returns true
assert.equal(false, isTypedArray('foo')); // returns false

"Is-typed-array" will return true for any value that is a Typed Array and false for anything that is not.

Where are the is-typed-array docs?

For "is-typed-array's" documentation, you can refer to the package's GitHub page and its npm page. These pages contain all the necessary information about this package, including its basic function, examples of its usage and the tests connected with this package.