VerifierFactory Reference
should() returns the VerifierFactory singleton — the only entry point of the library.
Factory methods
Method | Examined value | Returns |
|---|---|---|
| an array |
|
| a number |
|
| a string |
|
| a date or ISO string |
|
| two objects |
|
Boolean-context checks
Method | Passes when | Failure message |
|---|---|---|
| entry is truthy — not |
|
| entry is falsy |
|
Both are terminal: they return void and have no not form. See General Assertions.
Shared verifier members
Every verifier returned above inherits:
Member | Behavior |
|---|---|
| inverts every following check in the chain |
| passes when the entry is not |
The rules for null/undefined entries under not are documented in Concepts.