maxRange
Creates a validation functions that validates the range of a string, number or date.
const validate = maxRange(requirement, error);
Parameters
requirement
string | number | Date
error
string
Return
validate
QRL<
(value:
>MaybeValue<
) =>string | number | Date
>string