UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

17 lines (14 loc) 248 B
module.exports = function() { /** * Validates a boolean. * * @param cb The callback function. */ this.main.boolean = function bool(cb) { if(this.validates()) { this.required(); this.type(); } cb(); } }