Returns a function which will return true if every validation function returns true for a given value.
The function which can test the value.
Returns a function which returns true either if the given object is an array, or if all members of that array pass a validation function.
The function to use for validation.
A function which can be used to test if a value is an array and all members pass a validation function.
Returns true if o
is a valid date string.
The data to test.
A boolean describing if the data is a date string.
Checks that a value is not undefined.
The value to check.
Whether the value is defined.
Returns a function that checks that the length of this entity is within the max or min. If no max or min are provided, then just checks that this entity has a .length property and is a number.
An object which describes a maximum and minimum value.
A function which checks length.
Tests if the value is between the minimum and maximum values.
The limits to test.
Returns a function that can check if a number is below the maximum value.
Max value is optional; if omitted, simply acts like num
.
The maximum value.
A function which test values to tell if they're below the maximum value.
Helper for possibly undefined values. Equivalent to or(func, undef)
.
A validation function.
The validation function, but also accepting undefined values.
Returns a function that can check if a number is above the minimum value.
Min value is optional; if omitted, simply acts like num
.
The minimum value.
A function which test values to tell if they're above the minimum value.
Returns true if the given data is a number.
The data to test.
True if the data is a number.
Returns a function which returns true if the validation functions in a given schema all pass.
A schema - an object with keys mapping to boolean validation functions.
A function which can be used to validate objects against a schema.
Returns a validation function which returns true if any of the given functions return true.
A validation function, which returns true if any given function returns true on the tested data.
Returns a function which can validate a value against a given regex.
A function which can test using that regex.
Returns true if o
is a string.
The data to test.
A boolean describing if the data is a string.
Returns true if o
is undefined.
The data to test.
True if o
is undefined.
Returns true if o
is a URL.
The data to test.
A boolean describing if the data is a url.
Generated using TypeDoc
A function which can be used to validate values.