From 18b7895ca2f2a609b17b96aa35172923b5c6aa1e Mon Sep 17 00:00:00 2001 From: DCoded <dicoded@email.com> Date: Tue, 27 Apr 2021 23:17:43 -0400 Subject: [PATCH] Moved prototype.js to number.extension.js --- js/{prototype.js => extensions/number.extension.js} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename js/{prototype.js => extensions/number.extension.js} (82%) 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 d14c281ce89..0e32bb8595e 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; }; -- GitLab