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

Latest commit

 

History

History
21 lines (16 loc) · 308 Bytes

any-of.md

File metadata and controls

21 lines (16 loc) · 308 Bytes

Any Of

Will validate if any internal validator is validate.

Valid values:

validator.anyOf(
    validator.alwaysInvalid(),
    validator.alwaysValid()
).validate(true);

Invalid values:

validator.anyOf(
    validator.alwaysInvalid(),
    validator.alwaysInvalid()
).validate('foo');