Ad
Code
Diff
  • removeEveryThird=s=>s[0]+s.slice(1).replace(/(..)./g,'$1')
    • function removeEveryThird(str) {
    • return (str[0] || '') + str
    • .slice(1)
    • .replace(/(..)./g, '$1')
    • }
    • removeEveryThird=s=>s[0]+s.slice(1).replace(/(..)./g,'$1')