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

596 B

Home > @apextoaster/js-utils > mustCoalesce

mustCoalesce() function

Return the first value that is not nil.

@todo: rename to mustDefault

Signature:

export declare function mustCoalesce<T>(...values: Array<Optional<T>>): T;

Parameters

Parameter Type Description
values Array<Optional<T>>

Returns:

T