Skip to content

Instantly share code, notes, and snippets.

@xbrunosousa
Created December 11, 2020 11:29
Show Gist options
  • Save xbrunosousa/96a8cd565b3c087cd4e6ec519d973c50 to your computer and use it in GitHub Desktop.
Save xbrunosousa/96a8cd565b3c087cd4e6ec519d973c50 to your computer and use it in GitHub Desktop.
Remove accents from string | Javascript
const remove = str => str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment