GuobaGuoba Utils

NestedArray

@guoba-ai/utils / types / NestedArray

Type Alias: NestedArray<T>

type NestedArray<T> = (T | NestedArray<T>)[];

Defined in: types.ts:51

A nested array type that can contain values or other nested arrays.

Type Parameters

T

T

Example

const nested: NestedArray<number> = [1, [2, [3, 4]], 5]

On this page