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
A new Option.