validate
validate copied to clipboard
Providing default value if certain conditions are met (e.g. is null or undefined)
I think it is better if we can specify our own default value. Sometime I don't require client to send certain fields so I need to provide default value then it would be better to do with this module rather than on separate function so that it'll be easier to read.