defaulted
Summary
Provide a default when the input is undefined.
Signature
Parameters
schema
The wrapped schema
defaultValue
A value or function used to produce the default
Returns
A schema that produces the default when the input is undefined