Created
May 28, 2018 19:13
-
-
Save Rosey/68712669ee125644b3fd7598064175ed to your computer and use it in GitHub Desktop.
Bad example
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
items.forEach(function (item) { | |
const MY_REGEXP = /\d+/g; | |
item.replace(MY_REGEXP, 'boop'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment