Let's try mozilla's fixedCharAt function

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-30 19:46:35 -05:00
parent 588286b3f1
commit e74fc619a9

View File

@ -214,7 +214,7 @@ const surrogatePairs = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
var charIterateState;
function charIterate(input) {
let stringLength = (input.length - 1);
console.log(surrogatePairs.exec(input.charCodeAt(charIterateState)));
console.log(surrogatePairs.exec(input));
for (let i = 0; i < stringLength; ++i) {
if (false) {
stringLength--;