Skip to content

Instantly share code, notes, and snippets.

@LarryAnomie
Created October 15, 2013 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarryAnomie/6991202 to your computer and use it in GitHub Desktop.
Save LarryAnomie/6991202 to your computer and use it in GitHub Desktop.
simple fn to test if a number is even
/**
* returns true if a number is even
* @param {Number} value
* @return {Boolean}
*/
isEven = function(value) {
if (value % 2 === 0) {
return true;
} else {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment