Standard built-ins
String.prototype.normalize()
Returns the requested Unicode normalization form. An invalid form throws RangeError; compatibility forms can remove distinctions.
Formal Syntax & Structure
javascript syntaxjavascript
text.normalize([form])Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| form | String | NFC (default), NFD, NFKC or NFKD. |
Return Value
String
Normalized text.
Working Example
Example Snippetjavascript
console.log("é".normalize() === "é");