Baseline Widely Strings

String isWellFormed() and toWellFormed()

The isWellFormed() method of strings returns a boolean indicating if the string contains any Unicode lone surrogates. The toWellFormed() method returns a new string where all lone surrogates are replaced by the Unicode replacement character.

Baseline Status
Widely Available
Since 2023-10-24
First Core Launch
Chrome 111
2023-03-07
Core-3 Stability
231d
Last: Firefox (2023-10-24)
BCD Keys Mapped
2
Group: Strings

Browser Support Timeline

Chrome v111 (2023-03-07) Chrome Android v111 (2023-03-07) Edge v111 (2023-03-13) Safari v16.4 (2023-03-27) Safari on iOS v16.4 (2023-03-27) Firefox v119 (2023-10-24) Firefox for Android v119 (2023-10-24)
Green dot marks the first browser release (2023-03-07); blue dots show subsequent browser launches (+231d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Chrome desktop 111 2023-03-07
Chrome Android mobile 111 2023-03-07
Edge desktop 111 2023-03-13
Safari desktop 16.4 2023-03-27
Safari on iOS mobile 16.4 2023-03-27
Firefox desktop 119 2023-10-24
Firefox for Android mobile 119 2023-10-24

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
javascript.builtins.String.isWellFormed JS 231d
javascript.builtins.String.toWellFormed JS 231d