UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

17 lines (14 loc) 255 B
module.exports = function() { /** * Validates a value is null. * * @param cb The callback function. */ this.main.null = function validate(cb) { if(this.validates()) { this.required(); this.type(); } cb(); } }