1
0
Fork 0
js-utils/docs/api/js-utils.mustdefault.md

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