Skip to content

Use Intl.Segmenter when available? #35

@sindresorhus

Description

@sindresorhus

Investigate using https://github.com/tc39/proposal-intl-segmenter when it becomes available.

new Intl.Segmenter('en', {granularity: 'grapheme'});

Related issue: sindresorhus/string-length#14

We can use it when targeting Node.js 16.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions