@technobuddha > library > Array > Operations
Type Alias: CollapsibleValue<T>
ts
type CollapsibleValue<T> =
| T
| null
| undefined
| Iterable<T | null | undefined>;Defined in: collapse.ts:26
A CollapsibleValue<T>
A CollapsibleValue<T> can be:
- A single value of type
T nullundefined- An iterable object returning T | null | undefined
Type Parameters
| Type Parameter | Description |
|---|---|
T extends CollapsiblePrimitive | The primitive type that can be collapsed. |