Intl.Segmenter

The Intl.Segmenter object is a constructor for segmenters, objects that enable language sensitive string splitting.

Constructor

Intl.Segmenter()

Creates a new Segmenter object.

Static methods

Intl.Segmenter.supportedLocalesOf()

Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.

Instance methods

Intl.Segmenter.prototype.segment()

Getter function that segments a string according to the locale and granularity of this Intl.Segmenter object.

Intl.Segmenter.prototype.resolvedOptions()

Returns a new object with properties reflecting the locale and granularity options computed during initialization of this Intl.Segmenter object.