Skip to content

Instantly share code, notes, and snippets.

@fritz-gerneth
Created May 2, 2013 19:47
Show Gist options
  • Save fritz-gerneth/5504865 to your computer and use it in GitHub Desktop.
Save fritz-gerneth/5504865 to your computer and use it in GitHub Desktop.
var MyEntityValidator = function (animal) {
if (!animal.name) {
return false;
}
// ...
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment