UNPKG

async-validate

Version:

Asynchronous validation for node and the browser

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