-
-
Notifications
You must be signed in to change notification settings - Fork 0
uint8 clamped array
Nicholas Berlette edited this page Jun 19, 2025
·
1 revision
function isUint8ClampedArray(it: unknown): it is Uint8ClampedArray;
Check if the given value is a Uint8ClampedArray
instance.
Name | Info |
---|---|
it |
The value to check. |
true
if the value is a Uint8ClampedArray
instance, false
otherwise.
Binary Data Structures
import { isUint8ClampedArray } from "jsr:@nick/is/uint8clampedarray";
const arr = new Uint8ClampedArray(8);
isUint8ClampedArray(arr); // true
isUint8ClampedArray(arr.buffer); // false