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