maxLength

Creates a validation functions that validates the length of a string or array.

const validate = maxLength(requirement, error);

Parameters

  • requirement number
  • error string

Return

  • validate QRL<(value: MaybeValue<string | string[] | number[]>) => string>