String.prototype.toWellFormedbeginner'hello'.toWellFormed() // β 'hello'
'π'.toWellFormed() // β 'π'
'οΏ½'.toWellFormed() // β 'οΏ½'Use toWellFormed() to replace lone surrogate code units with the Unicode replacement character U+FFFD (ES2024).
Calling toWellFormed() on an empty string returns an empty string.
Challenge: Implement wellFormedEmpty() that calls toWellFormed on an empty string.
wellFormedEmpty() // β ''