types.isUint8ClampedArray - Node documentation
function types.isUint8ClampedArray

Usage in Deno

import { types } from "node:util";
const { isUint8ClampedArray } = types;
isUint8ClampedArray(object: unknown): object is Uint8ClampedArray

Returns true if the value is a built-in Uint8ClampedArray instance.

util.types.isUint8ClampedArray(new ArrayBuffer());  // Returns false
util.types.isUint8ClampedArray(new Uint8ClampedArray());  // Returns true
util.types.isUint8ClampedArray(new Float64Array());  // Returns false

Parameters

object: unknown

Return Type

object is Uint8ClampedArray