function types.isUint16Array
Usage in Deno
import { types } from "node:util";
isUint16Array(object: unknown): object is Uint16Array
Returns true
if the value is a built-in Uint16Array
instance.
util.types.isUint16Array(new ArrayBuffer()); // Returns false
util.types.isUint16Array(new Uint16Array()); // Returns true
util.types.isUint16Array(new Float64Array()); // Returns false
object is Uint16Array