DEV Community

Discussion on: #24 - Create Phone Number CodeWars Kata (6 kyu)

Collapse
 
jonrandy profile image
Jon Randy πŸŽ–οΈ
const makePhoneNumber = a=>[...'(012) 345-6789'].map(c=>a[c]||c).join('')
Enter fullscreen mode Exit fullscreen mode
Collapse
 
cesar__dlr profile image
Cesar Del rio

Nice solution πŸ”₯