-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
In quite some projects it's not that unusual to have a method that receives a string and an object containing key and values of words that need to be replaced in the given string,
e.g.
console.log(replaceAll("foobar", {foo: a, bar: b}));
// prints ”ab”
One use case would be some kind of translation service that supports placeholders.
Reactions are currently unavailable