Thank you everyone for contributing to make this code better, if you have suggestions or ideas to improve the code please feel free to leave a comment here #29. Rules:
const someRule= new Rule({
type: 'yourType',
prop1: val1,
prop2: val2, ...
}, null);
someRule.test(validValue) // returns true
someRule.test(invalidValue) // returns false
2 Please if you think a comment is a good feature to be added like the comment instead of creating a new one.
4 If you submit a PR (pull request) and you only change the Readme please add [ci skip]
to your commit message
code with love ❤️