Skip to main content

isAnyArrayBuffer

function isAnyArrayBuffer
Jump to headingisAnyArrayBuffer(object: unknown): object is ArrayBufferLike

Returns true if the value is a built-in ArrayBuffer or SharedArrayBuffer instance.

See also util.types.isArrayBuffer() and util.types.isSharedArrayBuffer().

util.types.isAnyArrayBuffer(new ArrayBuffer());  // Returns true
util.types.isAnyArrayBuffer(new SharedArrayBuffer());  // Returns true

Parameters Jump to heading

Jump to headingobject: unknown

Return Type Jump to heading

object is ArrayBufferLike
Back to top