Created
May 27, 2014 13:22
-
-
Save jdibiccari/e522fa17a531554f5cac to your computer and use it in GitHub Desktop.
blog_post_4
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
Number.prototype.negMod = function(n) { | |
return ((this%n)+n)%n; | |
}; | |
//Where 'this' is the number we are taking modulus of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment