- Template literals are literals delimited with backticks (`), allowing embedded expressions called substitutions.
- The
String
object is used to represent and manipulate a sequence of characters.(c) MDN
🐊Putout plugin adds ability to find and convert Template Literals to calling of String
constructor.
npm i @putout/plugin-convert-template-to-string
{
"rules": {
"convert-template-to-string": "on"
}
}
const s = `${a + b}`;
const s = String(a + b);
MIT