defaulted
helper that makes defining default values easy:user
object didn't default an id
property. That's because any undefined
values will be replaced with their default values instead.defaults
helper also works with objects:undefined
values, but instead transforming the input data from one format to another.assert()
or is()
you can use create()
to apply your custom coercion logic: