Skip to main content

isUint8Array

function isUint8Array
Jump to headingisUint8Array(object: unknown): object is Uint8Array

Returns true if the value is a built-in Uint8Array instance.

util.types.isUint8Array(new ArrayBuffer());  // Returns false
util.types.isUint8Array(new Uint8Array());  // Returns true
util.types.isUint8Array(new Float64Array());  // Returns false

Parameters Jump to heading

Jump to headingobject: unknown

Return Type Jump to heading

object is Uint8Array
Back to top