add zero-width space

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-09 09:20:06 -05:00
parent 0d7c7b6647
commit 2745467dbb

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;
} }