String.prototype.normalizeintermediateconst e1 = 'Γ©' // Γ© precomposed
const e2 = 'eΜ' // e + combining accent
e2.normalize('NFC') === e1 // β trueUse normalize() to convert a string to a Unicode normal form, useful for comparing visually identical strings.
str.normalize(form) returns the Unicode Normalization Form of the string.
'\u00e9' is the precomposed Γ© (NFC form).'\u0065\u0301' is decomposed (e + combining accent, NFD form).Challenge: Implement toNFC(str) using .normalize('NFC').
toNFC('\u0065\u0301') // β '\u00e9' (Γ© precomposed)