function isTypedArray
Jump to headingisTypedArray(object: unknown): object is TypedArray
Returns true
if the value is a built-in TypedArray
instance.
util.types.isTypedArray(new ArrayBuffer()); // Returns false
util.types.isTypedArray(new Uint8Array()); // Returns true
util.types.isTypedArray(new Float64Array()); // Returns true
See also ArrayBuffer.isView()
.
Parameters Jump to heading
Jump to headingobject: unknown
Return Type Jump to heading
object is TypedArray