Checks if the given value is TypedArray.

Syntax

TypeScript
import { isTypedArray } from '@opentf/std';

isTypedArray(value: unknown): val is TypedArray

Examples

TypeScript
isTypedArray([]) //=> false

isTypedArray(new Int8Array()) //=> true

isTypedArray(new Float64Array()) //=> true
Last updated on
Edit this page