Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

String.prototype.normalize()

2 tags 1 category

The normalize() method of String values returns the Unicode Normalization Form of this string.

Unicode assigns a unique numerical value, called a code point, to each character. For example, the code point for “A” is given as U+0041. However, sometimes more than one code point, or sequence of code points, can represent the same abstract character — the character “ñ” for example can be represented by either of:

The single code point U+00F1. The code point for “n” (U+006E) followed by the code point for the combining tilde (U+0303).

However, since the code points are different, string comparison will not treat them as equal. And since the number of code points in each version is different, they even have different lengths.

Syntax example: normalize()

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…