Returns the replaced string of the source string (named placeholder) with the given parameters
Optional
the source string to inspect
the parameters to replaced with, in the form of key values
the replaced string of the source string
formatPlaceholder("foo{bar}", {bar: "bar"}); // "foobar"formatPlaceholder("foobar{none}"); // "foobar{none}"formatPlaceholder("foobar{none}", {}); // "foobar{none}"formatPlaceholder("hello {name}, foo{bar}", {name: "world", bar: "bar"}); // "hello world, foobar" Copy
formatPlaceholder("foo{bar}", {bar: "bar"}); // "foobar"formatPlaceholder("foobar{none}"); // "foobar{none}"formatPlaceholder("foobar{none}", {}); // "foobar{none}"formatPlaceholder("hello {name}, foo{bar}", {name: "world", bar: "bar"}); // "hello world, foobar"
Returns the replaced string of the source string (named placeholder) with the given parameters