Suppose I have a template literal tag function foo
, which allows me to use it like this:
const fooTaggedText = foo`some text`;
Can I somehow invoke that tag on a normal string? For example:
// This doesn't work as expected
const fooTaggedText = foo('some text');