Created
April 16, 2018 00:02
-
-
Save alefhsousa/52c4c12247869ef01121ebb9c8dec697 to your computer and use it in GitHub Desktop.
remove accentuation in javascript using ES6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function removeAccentuation(s) { | |
return s.normalize('NFD').replace(/[\u0300-\u036f]/g, "") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment