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