Checks if a value is a TypedArray.
The value to check.
Returns true if x is a TypedArray, false otherwise.
x
const arr = new Uint8Array([1, 2, 3]);isTypedArray(arr); // trueconst regularArray = [1, 2, 3];isTypedArray(regularArray); // falseconst buffer = new ArrayBuffer(16);isTypedArray(buffer); // false Copy
const arr = new Uint8Array([1, 2, 3]);isTypedArray(arr); // trueconst regularArray = [1, 2, 3];isTypedArray(regularArray); // falseconst buffer = new ArrayBuffer(16);isTypedArray(buffer); // false
Alias