Skip to content

Function: arrayFlatten() ​

arrayFlatten<T>(array, depth?): T[]

Defined in: src/arrays.ts:129

Flatten a multi-dimensional array into a single level.

Type Parameters ​

T ​

T

Parameters ​

array ​

unknown[]

The array to flatten

depth? ​

number = Infinity

The depth to flatten to

Returns ​

T[]

The flattened array

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.