#ReplaceFunction
Not a big fan of regex? You can now avoid using them when you want to replace all occurrences of a string in another string.

You can use `String.prototype.replaceAll(substring, newSubstring | replaceFunction)`.

Not more "/g escaping reserved char" things!

#techtweets #day44
April 29, 2025 at 6:15 PM
May 13, 2026 at 5:23 AM