0.1.1 • Published 3 years ago

@annexe/array.istypedarray v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@annexe/istypedarray

A function to check if value is a TypedArray.

Installation

To install @annexe/istypedarray

Yarn

yarn add @annexe/istypedarray

NPM

npm install @annexe/istypedarray

Usage

import { isTypedArray } from '@annexe/istypedarray';

console.log(isTypedArray(123)); // logs FALSE
console.log(isTypedArray(new Int8Array()); // logs TRUE