Skip to content

Instantly share code, notes, and snippets.

@bearkfear
Created April 20, 2021 14:27
Show Gist options
  • Save bearkfear/66f0ef3fd446edd81fd12252995a79f2 to your computer and use it in GitHub Desktop.
Save bearkfear/66f0ef3fd446edd81fd12252995a79f2 to your computer and use it in GitHub Desktop.
"55984366060".split("").reduce((p, c)=> p.replace("x", c),"(xx) xxxxx-xxxx")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment