const removeAccent = (text: string) => text.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
removeAccent('Lê Trung Lực') // 'Le Trung Luc'
String.prototype.normalizebreaks accented characters into base letters and combining marks.String.prototype.replacethen strips those combining marks to remove the accents.