# Disable String.prototype.normalize (`ts-compat/no-string-normalize`) 💼 This rule is enabled in the ✅ `recommended` config. There is a compatibility issue with `String.prototype.normalize`. No version of IE supports it, and a polyfill has to carry the whole Unicode normalization table, which does not comply with the principle of using native features as much as possible. Keep the text already composed and compare it directly. `String.prototype.normalize` needs Chrome 34, Edge 12, Firefox 31, Safari 10, Opera 21 or iOS Safari 10 to run. ## Rule Details This rule bans every read of `normalize` on a string, called or not. Examples of **incorrect** code for this rule: ```ts var filename: string; filename.normalize("NFC") === "café.txt"; const normalize = filename.normalize; ``` Examples of **correct** code for this rule: ```ts var filename: string; filename === "café.txt"; ``` ## When Not To Use It * A normalize polyfill is loaded, so the method is safe to call everywhere. * The code never relies on normalization, it only reads strings produced by the same source. ## Further Reading * [MDN String.prototype.normalize()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize) * [can i use String.prototype.normalize()](https://caniuse.com/mdn-javascript_builtins_string_normalize)