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

572 B

Home > @apextoaster/js-utils > mustExist

mustExist() function

Assert that a variable is not nil and return the value.

Signature:

export declare function mustExist<T>(val: Optional<T>): T;

Parameters

Parameter Type Description
val Optional<T>

Returns:

T

val

Exceptions

NotFoundError