Skip to content

Instantly share code, notes, and snippets.

@boo1ean
Last active December 11, 2015 21:58
Show Gist options
  • Save boo1ean/4666103 to your computer and use it in GitHub Desktop.
Save boo1ean/4666103 to your computer and use it in GitHub Desktop.
formatPhone: function(phone) {
return phone.replace(/(\d\d\d)(\d\d\d)(\d\d\d\d)/, '($1) $2-$3');
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment