Skip to content

ตัดคำภาษาไทยใน JS #22

@rootEnginear

Description

@rootEnginear
const segment = (str) => [...new Intl.Segmenter('th-TH', {
  granularity: 'word'
}).segment(str)].map(w => w.segment);

CanIUse: 89.02% | ❌ Firefox

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions