Let's try mozilla's fixedCharAt function

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-30 19:31:27 -05:00
parent 1adcc069df
commit 4aded5d3e5

View File

@ -217,6 +217,7 @@ function charIterate(input) {
for (let i = 0; i < stringLength; ++i) {
if (surrogatePairs.exec(input.charCodeAt(charIterateState)) !== null) {
stringLength--;
console.log("Decreasing stringLength variable to", stringLength);
}
}
if (charIterateState == undefined) {