There's already `.codePointAt`, and `[...str].length`. The thing that's really needed more than code points is grapheme clusters; see https://esdiscuss.org/topic/working-with-grapheme-clusters
On Sun, Sep 8, 2019 at 5:01 AM Dimitrian Nine <[email protected]> wrote: > Maybe i don't know something, but want to proposal idea: > We have emojis and other symbols, that have many codepoints > And 'emoji'.length > 1 > My idea that we have something like > 'emoji'.symbols - and get array of symbols, where symbol is array of > codepoints > And maybe method SymbolAt > 'emoji'.SymobolAt(0) = array of codepoints > > Examples: > '123456emoji789'.symbols.length = 10 > '123456emoji789'.SymbolAt(6) = codepoints of emoji > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

