isTypedArray()function

isTypedArray(value: unknown): value is TypedArray
ParamType
valueunknown
The value to test. required
Return
value is TypedArray
true if value is a numeric TypedArray, narrowing its type.

Detect if an unknown value is a TypedArray, like Uint8Array or Float32Array (not including DataView).