Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
9b30795909
commit
0d29908fcc
@ -217,7 +217,8 @@ function charIterate(input) {
|
||||
let temp = input.split('');
|
||||
for (let i = 0; i < stringLength; ++i) {
|
||||
let compareString = temp.join("");
|
||||
if (surrogatePairs.exec(compareString)[index] == i) {
|
||||
console.log(surrogatePairs.exec(compareString));
|
||||
if (surrogatePairs.exec(compareString).index == i) {
|
||||
stringLength--;
|
||||
console.log("Decreasing stringLength variable to", stringLength);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user