Function: all()
all<
T>(options: [...T[]]):Option<UnwrapSomeArray<T>>
Creates a Some that is the combination of all collected Some values as an array, or the first None encountered.
Type parameters
| Type parameter |
|---|
T extends readonly Option<any>[] |
Parameters
| Parameter | Type | Description |
|---|---|---|
options | [...T[]] | An array of Options. |
Returns
Option <UnwrapSomeArray<T>>
A new Option.