UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

18 lines (15 loc) 272 B
module.exports = function() { /** * Validates a function. * * @param cb The callback function. */ this.main.function = function method(cb) { if(this.validates()) { this.required(); this.type(); this.range(); } cb(); } }