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
Browser Support Releases
| Browser | Type | Version | Release 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 Key | Area | Core-3 TTA |
|---|---|---|
| javascript.builtins.String.isWellFormed | JS | 231d |
| javascript.builtins.String.toWellFormed | JS | 231d |