Skip to content

Function.isArray

github-actions[bot] edited this page May 21, 2026 · 32 revisions

umt / isArray

Function: isArray()

isArray<T>(array): array is T[]

Defined in: Validate/isArray.ts:8

Determines if the value is an array

Type Parameters

T

T

Parameters

array

unknown

Value to check

Returns

array is T[]

boolean - True if the value is an array, false otherwise

Example

isArray([1, 2, 3]); // true
isArray({}); // false

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally