Created
October 17, 2016 18:41
-
-
Save Viktorminator/78551bc0179f3f36b959605ca3982c5a to your computer and use it in GitHub Desktop.
Exclamation marks series #2: Remove all exclamation marks from the end of sentence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove(s){ | |
return s.replace(/!+$/, '') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment