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