js-applicative-validation
v1.2.0
Published
Applicative validation for JavaScript
Downloads
5
Readme
js-applicative-validation
Requirement:
var Validation = require('js-applicative-validation').Validation;
Example:
Validation().filter(function () { return isEmail(myField) }).throwIfError();
On filter it accepts the following values:
| Valid Meaning | Invalid Meaning | | ------------- |-------------| | true | false | | Success | Failure | | undefined | throw Exception |