It's literally what template string tags are -- functions.
You have to try this in your console.
function foo(...args) { console.log(JSON.stringify(args)) } foo`a${1}b${2}c${3}d`
I get
[["a","b","c","d"],1,2,3]
The first arg is always an array of strings, and the latter args are objects, in their native form.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It's literally what template string tags are -- functions.
You have to try this in your console.
I get
The first arg is always an array of strings, and the latter args are objects, in their native form.