Checks if the given value is an ArrayBuffer (opens in a new tab).
Syntax
import { isArrBuf } from '@opentf/std';
isArrBuf(val: unknown): boolean;
Examples
isArrBuf([]) //=> false
isArrBuf(new ArrayBuffer(8)) //=> true
Checks if the given value is an ArrayBuffer (opens in a new tab).
import { isArrBuf } from '@opentf/std';
isArrBuf(val: unknown): boolean;
isArrBuf([]) //=> false
isArrBuf(new ArrayBuffer(8)) //=> true