diff --git a/docs/index.html b/docs/index.html index cda5bb3d4..0423fcd3e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -186,7 +186,7 @@ validateEmail validateNumber -
 

Array

+
 

Array

arrayGcd

Calculates the greatest common denominator (gcd) of an array of numbers.

Use Array.reduce() and the gcd formula (uses recursion) to calculate the greatest common denominator of an array of numbers.

diff --git a/scripts/web-script.js b/scripts/web-script.js index d51a39d28..334a5de6c 100644 --- a/scripts/web-script.js +++ b/scripts/web-script.js @@ -76,7 +76,7 @@ try { output += md.render(`[${taggedSnippet[0]}](#${taggedSnippet[0].toLowerCase()})\n`).replace(/

/g,'').replace(/<\/p>/g,'').replace(/

`; + output += `
`; output += ` `; // Loop over tags and snippets to create the list of snippets for(let tag of [...new Set(Object.entries(tagDbData).map(t => t[1]))].filter(v => v).sort((a,b) => a.localeCompare(b))){