Skip to content

minLength

minLenght(dataValue, validatorConfigValue) ⇒ boolean

Check for min string length

Kind: global function

ParamTypeDescription
dataValuestringinput string
validatorConfigValuenumbermin expected value

Example

js
import minLenght from '@hiperf/validate/minLenght';

minLenght('John', 5); // false
minLenght('John', 2); // true