Skip to content

max

max(dataValue, validatorConfigValue) ⇒ boolean

Check that number is <= max value

Kind: global function

ParamTypeDescription
dataValuenumberinput value
validatorConfigValuenumbermax expected value

Example

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

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