Cam Wiegert

Results 4 comments of Cam Wiegert

There are currently no types for this package. I've considered writing them but haven't found time yet.

I think the best way to provide types for this would be to use [Typescript JSDoc annotations](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html). That way we don't need to introduce a build step.

I know that some Unicode surrogate pairs aren't handled by `String.prototype[Symbol.iterator]`, which is how this library iterates over strings. Many emoji and other Unicode characters are handled correctly, but some...

An example of using the String [normalize](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize) method: ```js [...'café'].length === 5 [...'café'.normalize()].length === 4 ```