Created
December 13, 2018 02:40
-
-
Save Jberivera/cb1e7dedd5e71fc8d7edd5f82e89d449 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function getModulo(value, modulus) { | |
return ( | |
((value % modulus) + modulus) % modulus | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment