JS Built-ins
StringString.prototype.normalizeadvanced

String.prototype.normalize() β€” NFKD

πŸ“– Usage Example
const e1 = 'Γ©'           // Γ© precomposed
const e2 = 'é'    // e + combining accent
e2.normalize('NFC') === e1    // β†’ true

Use normalize() to convert a string to a Unicode normal form, useful for comparing visually identical strings.

String.prototype.normalize() β€” NFKD

NFKD (Compatibility Decomposition): like NFD but also decomposes compatibility characters.

Challenge: Implement toNFKD(str) using .normalize('NFKD').

πŸ’‘ Hints (1)
  • β€’ NFKD = NFKC but without the final composition step.