Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Validarium example

node v10.24.1
version: 3.0.0
endpointsharetweet
const { isRequired, isEmail, isNumber, hasLengthMax, hasValueMin, } = require('@validarium/intl'); const { validate, createMainValidate } = require('@validarium/core'); const fieldValidations = validate({ email: [isRequired, isEmail, hasLengthMax(200)], age: [isRequired, isNumber, hasValueMin(18)], }); // pure validation result console.log(fieldValidations({}))
Loading…

no comments

    sign in to comment