609 B
609 B
Home > @apextoaster/js-utils > mustDefault
mustDefault() function
Return the first value that is some T
. Throw if they are all None
.
Signature:
export declare function mustDefault<T>(...values: Array<Maybe<T>>): T;
Parameters
Parameter | Type | Description |
---|---|---|
values | Array<Maybe<T>> |
Returns:
T