Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

js-applicative-validation

1.2.0 • Public • Published

js-applicative-validation Build Status

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

Install

npm i js-applicative-validation

DownloadsWeekly Downloads

6

Version

1.2.0

License

ISC

Last publish

Collaborators

  • avatar