Standard built-ins

String.prototype.normalize()

Try the free JavaScript compiler

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

NameTypeDescription
formStringNFC (default), NFD, NFKC or NFKD.

Return Value

String

Normalized text.

Working Example

Example Snippetjavascript
console.log("é".normalize() === "é");
JavaScript Reference