Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Latest commit

 

History

History
21 lines (16 loc) · 292 Bytes

all-of.md

File metadata and controls

21 lines (16 loc) · 292 Bytes

All Of

Will validate if all inner validators validates.

Valid values:

validator.allOf(
    validator.notEmpty(),
    validator.booleanType()
).validate(true);

Invalid values:

validator.allOf(
    validator.notEmpty(),
    validator.booleanType()
).validate('foo');