Created
November 10, 2016 09:09
-
-
Save brunomonteiro3/ecfa4eb1eaa848b1cc7495860308aa91 to your computer and use it in GitHub Desktop.
Check if value is between X or Y
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
function between(x, min, max) { | |
return x >= min && x <= max; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage example: