function types.isAnyArrayBuffer
Usage in Deno
import { types } from "node:util"; const { isAnyArrayBuffer } = types;
isAnyArrayBuffer(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
object is ArrayBufferLike