minLength
minLenght(dataValue, validatorConfigValue) ⇒ boolean
Check for min string length
Kind: global function
Param | Type | Description |
---|---|---|
dataValue | string | input string |
validatorConfigValue | number | min expected value |
Example
js
import minLenght from '@hiperf/validate/minLenght';
minLenght('John', 5); // false
minLenght('John', 2); // true