Skip to content
Snippets Groups Projects
Commit 18b7895c authored by DCoded's avatar DCoded
Browse files

Moved prototype.js to number.extension.js

parent be01f40b
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
* @param {number} max The maximum value. * @param {number} max The maximum value.
* @param {boolean} inclusive Whether or not to include the minimum and maximum values. * @param {boolean} inclusive Whether or not to include the minimum and maximum values.
*/ */
Number.prototype.between = function(min, max, inclusive = false) { Number.prototype.between = function(min, max, inclusive = false) {
return inclusive ? this >= min && this <= max : this > min && this < max; return inclusive ? this >= min && this <= max : this > min && this < max;
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment