isOneOf
Verifies if provided Validatable
is exactly equal (===
) to one of provided values in array allowedValues
.
Arguments:
allowedValues
- required, array of values.
Possible errors:
If provided Validatable
is not equal (===
) to any of values in provided allowedValues
array:
Validatable
is not equal (===
) to any of values in provided allowedValues
array:Examples:
Each of examples uses this import statement:
Value not equally (===
) matching any of provided allowedValues
:
===
) matching any of provided allowedValues
:Value matching at least one of allowedValues
:
allowedValues
:Last updated