Skip to content

Instantly share code, notes, and snippets.

View leandromarques's full-sized avatar

Leandro Marques leandromarques

  • Eindhoven, NL
View GitHub Profile
/**
* Remove accent
* @param {String} newString [string with accents]
* @return {String} [string without accents]
*/
function removeAccents( newString ) {
let string = newString;
let mapHex = {
a : /[\xE0-\xE6]/g,
e : /[\xE8-\xEB]/g,