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