String.js 184 Bytes
Newer Older
1
export function _btoa(s) {
2 3 4 5 6
  return btoa(unescape(encodeURIComponent(s)));
}

export function _specialCharNormalize(s) {
  return s.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
7
}