Created
October 25, 2017 11:08
-
-
Save vielhuber/8539fadab97ddc75455c3ac726b744b0 to your computer and use it in GitHub Desktop.
replace all occurences in a string without regex #js
This file contains hidden or 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
'this is a foo and a foobar'.split('foo').join('bar'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment