From bc0adbcf9ab989a6a5d4914bd55082ca6e28df92 Mon Sep 17 00:00:00 2001 From: Skriv <skrivelese@gmail.com> Date: Mon, 3 Feb 2020 19:32:51 +0100 Subject: [PATCH] spacing --- js/random.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/random.js b/js/random.js index 13e6528ed7d..bd2d3220fbd 100644 --- a/js/random.js +++ b/js/random.js @@ -40,7 +40,7 @@ function jsRandom(min, max, count = 1) { for (let i = 0; i < count; i++) { total += rand(); } - return Math.floor(total/count); + return Math.floor(total / count); } /** @@ -61,9 +61,9 @@ function jsRandomMany(arr, count) { /** * Accepts both an array and a list, returns undefined if nothing is passed. - * @param {number|string|number[]|string[]} choices - * @param {...(number|string|number[]|string[])} otherChoices - * @returns {number|string|number[]|string[]|undefined} + * @param {any[]} choices + * @param {any[]} [otherChoices] + * @returns {any} */ function jsEither(choices, ...otherChoices) { if (otherChoices.length === 0 && Array.isArray(choices)) { -- GitLab