Skip to content

equal

equal(dataValue, validatorConfigValue) ⇒ boolean

Check if value equal to target value

Kind: global function

ParamTypeDescription
dataValue*input value
validatorConfigValue*input value

Example

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

equal(true, true); // true
equal(false, false); // true
equal('5', 5); // false
equal(5, '5'); // false
equal(1, true); // false