enforceInput

Enforces the value of an input to be defined.

@trusted
T
enforceInput
(
T
)
(,
lazy string message = null
)
if ()

Parameters

value T

The value of an input.

message string

A given message when the value is undefined.

Return Value

Type: T

The value of the input.

Meta