Let's try mozilla's fixedCharAt function

master
Caleb Fontenot 2023-04-30 19:31:27 +07:00
parent 1adcc069df
commit 4aded5d3e5
1 changed files with 1 additions and 0 deletions

@ -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) {