Skip to content

min

min(dataValue, validatorConfigValue) ⇒ boolean

Check that number is >= min value

Kind: global function

ParamTypeDescription
dataValuenumberinput value
validatorConfigValuenumbermin expected value

Example

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

min(5,7); // false
min(7,5); // true