types.isUint16Array - Node documentation
function types.isUint16Array

Usage in Deno

import { types } from "node:util";
const { isUint16Array } = 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

Parameters

object: unknown

Return Type

object is Uint16Array