minLength
Creates a validation functions that validates the length of a string or array.
const validate = minLength(requirement, error);
Parameters
requirementnumbererrorstring
Return
validate(value:MaybeValue<) =>string |>string[] |number[]string