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