minStringLengthThe minStringLength modifier is used to contraint length of string or array values.const atLeastTwoCharsValidator = validate(minStringLength(2)(string())); // Returns 'ok'const ok = atLeastTwoCharsValidator('ok'); // Throws ValidationErrorconst notOk = atLeastTwoCharsValidator('?');Copy