Skip to content

Instantly share code, notes, and snippets.

@sethmcl
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save sethmcl/10555999 to your computer and use it in GitHub Desktop.

Select an option

Save sethmcl/10555999 to your computer and use it in GitHub Desktop.
function validateInput(input) {
var invalid;
validations.some(function (validation) {
invalid = validation.check(input);
return invalid;
});
return invalid;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment