Lodash has this awesome function https://lodash.com/docs/4.17.4#deburr
Deburrs string by converting Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.
_.deburr('déjà vu'); // => 'deja vu'
That's the only one that makes me use lodash as external lib within my application.
So I would like a function like that using javascript/typescript only and/or angular.
I couldn't find anything similar.
Do you have some function for that?
There isn't a built-in function in either Angular or JavaScript.
However, it looks like that function is exported as a standalone package in NPM: lodash.deburr .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.