Skip to content

int16 array

Nicholas Berlette edited this page Jun 19, 2025 · 1 revision

@nick/is/int16-array

isInt16Array

Signature

function isInt16Array(it: unknown): it is Int16Array;

Check if the given value is a Int16Array instance.

Parameters
Name Info
it The value to check.
Returns

true if the value is a Int16Array instance, false otherwise.

Category

Binary Data Structures

Examples

import { isInt16Array } from "jsr:@nick/is/int16array";

const arr = new Int16Array(8);
isInt16Array(arr); // true
isInt16Array(arr.buffer); // false

Clone this wiki locally