Questions about validate.js, a JavaScript library containing several useful functions for validating Objects.
Validate.js is currently in version 0.10.0.
It contains 3 main functions:
validate(attributes, constraints[, options])
async(attributes, constraints[, options])
single(value, constraints[, options])
All of these are very similar, but their differences are as follows:
validate
is the basic function.async
starts a new thread, returning an object that resolves itself when the validation completes.single
evaluates a singlevalue
without the required overhead of an object literal.
See also: javascriptvalidation