Function: flat()
flat<
T>(input):T|T[]
Defined in: packages/core/src/internal-fns/index.ts:106
Deeply flattens a recursive array; if the result has exactly one element, returns that element directly.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
input | RecursiveArray<T> |
Returns
T | T[]