Skip to content

mojave/string::replaceAll #61

@keichinger

Description

@keichinger

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions