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