diff --git a/js/prototype.js b/js/extensions/number.extension.js similarity index 82% rename from js/prototype.js rename to js/extensions/number.extension.js index d14c281ce8965d2ffb8048caaa9cfe0b6c5e8de9..0e32bb8595ea16d40ec06091506ee072e281a015 100644 --- a/js/prototype.js +++ b/js/extensions/number.extension.js @@ -4,6 +4,6 @@ * @param {number} max The maximum value. * @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; };