function isAnyArrayBuffer
Usage in Deno
import { isAnyArrayBuffer } from "node:util/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