format
format(callback, [ctx])
Effect
Format the final return value of validate
and validateSilent
, the return value of callback
will be the final return value.
Arguments
callback
(function) - The format function. The function has an argument: the return value returned byvalidate
. The return value ofcallback
is recommended but not necessarily to be the type of the schema declared.[ctx]
(*) - The execution context of callback.
Example
Last updated