For a poor man\'s implementation of near-collation-correct sorting on the client side I need a JavaScript function that does efficient single character rep
I can't think about an easier way to efficiently remove all diacritics from a string than using this amazing solution.
See it in action:
var string = "öäüÖÄÜ"; var string_norm = string.normalize('NFD').replace(/[\u0300-\u036f]/g, ''); console.log(string_norm);