Merge branch 'master' of ssh://gitea.calebfontenot.com:25566/CCF_100/NoMoreAcronyms

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-09 09:20:11 -05:00
commit d0966ef317

View File

@ -214,12 +214,13 @@ var charIterateState;
function charIterate(input) { function charIterate(input) {
if (charIterateState == undefined) { if (charIterateState == undefined) {
charIterateState = 0; charIterateState = 0;
} } else {
if (charIterateState < (input.length - 1)) { if (charIterateState < (input.length - 1)) {
charIterateState++; charIterateState++;
} else { } else {
charIterateState = 0; charIterateState = 0;
} }
}
console.log(charIterateState, input.charAt(charIterateState)); console.log(charIterateState, input.charAt(charIterateState));
return charIterateState; return charIterateState;
} }