Test an array to be not empty.
Invert the following validators.
Test an array to be deeply equal to the provided array.
Expected value to match.
Test an array to end with a specific value. The value is tested by identity, not structure.
The value that should be the end of the array.
Test an array to include all the provided elements. The values are tested by identity, not structure.
The values that should be included in the array.
Test an array to include any of the provided elements. The values are tested by identity, not structure.
The values that should be included in the array.
Test if the value matches a custom validation function. The validation function should return true
if the value
passes the function. If the function either returns false
or a string, the function fails and the string will be
used as error message.
Validation function.
Test an array to have a specific length.
The length of the array.
Test an array to have a maximum length.
The maximum length of the array.
Test an array to have a minimum length.
The minimum length of the array.
Test all elements in the array to match to provided predicate.
The predicate that should be applied against every individual item.
Test an array to start with a specific value. The value is tested by identity, not structure.
The value that should be the start of the array.
Test an array to be empty.