Skip to main content
Version: 0.1.1

Function: minLength()

Imported from @react-logic/utils

minLength<N>(n, message?, name?): ValidatorEntry<string> & object

String length must be ≥ n. Pairs with the minLength HTML attribute.

Type Parameters​

N​

N extends string = "minLength"

Parameters​

n​

number

message?​

string

name?​

N = ...

Returns​

ValidatorEntry<string> & object