Skip to content

Instantly share code, notes, and snippets.

@rafaelbeckel
Created September 19, 2019 23:14
Show Gist options
  • Save rafaelbeckel/67a55b28961df538ce4cdc515482f058 to your computer and use it in GitHub Desktop.
Save rafaelbeckel/67a55b28961df538ce4cdc515482f058 to your computer and use it in GitHub Desktop.
JS Number between function
Number.prototype.between = (min, max) => this >= min && this <= max;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment