-
-
Save bitfishxyz/cdc35cc24e91759971ad70a27cf099a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var compose2 = function() { | |
var validator = new Validator(); | |
const data2 = { | |
role: 'register', | |
job: 'FE' | |
}; | |
validator.add(data2.role, 'checkRole'); | |
validator.add(data2.job, 'checkJob'); | |
const result = validator.check(); | |
return result; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment