Instance methods

Segments.prototype.containing()

Returns an object describing the segment in the original string that includes the code unit at a specified index.

Segments.prototype[Symbol.iterator]()

Returns an iterator to iterate over the segments.

Specifications

Specification
ECMAScript® 2026 Internationalization API Specification
# sec-segments-objects

Browser compatibility

See also