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