Last active
September 6, 2020 10:12
-
-
Save ozantunca/8c02904ecebb2917419e64c21cce9c9c to your computer and use it in GitHub Desktop.
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 removeFromText(text, strToBeRemoved) { | |
return text.split(strToBeRemoved).join(''); | |
} | |
removeFromText('lorem+ipsum+dolor+sit+amet', '+'); | |
// -> 'loremipsumdolorsitamet' ✅ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment