Skip to content
Snippets Groups Projects
Commit bc0adbcf authored by Skriv's avatar Skriv
Browse files

spacing

parent 721a6d50
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
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