Y
Hacker News
new
|
ask
|
show
|
jobs
by
DecoPerson
994 days ago
JavaScript has this with template strings. I use it often:
s = `something ${cond ? `(${v})` : ''} something`