Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
ab94fe1a67
commit
48f0fb02ee
@ -214,7 +214,8 @@ const surrogatePairs = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
||||
var charIterateState;
|
||||
function charIterate(input) {
|
||||
let stringLength = (input.length - 1);
|
||||
console.log(surrogatePairs.exec(input, charIterateState));
|
||||
console.log(surrogatePairs.exec(input));
|
||||
console.log(surrogatePairs.lastIndex);
|
||||
for (let i = 0; i < stringLength; ++i) {
|
||||
if (false) {
|
||||
stringLength--;
|
||||
|
Loading…
Reference in New Issue
Block a user