stripUnknown
stripUnknown()
Effect
When you call allowKnown
to allow unknown keys, the return value of validate
and validateSilent
will retain the unknown keys and corresponding values. If you want to strip the unknown keys and corresponding values, you can call stripUnknown
.
NOTE
If you called
stripUnknown
, you don't need to callallowKnown
,stripUnknown
contains the effect ofallowKnown
.
Arguments
None
Example
Last updated