We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d84bc3a commit 48286d9Copy full SHA for 48286d9
template-literals.js
@@ -26,7 +26,7 @@ const bar = () => 'MrBar'
26
const mr = (template, ...expressions) => {
27
// template is an Array broke at the interpolations
28
// e.g. for `foo {$a} bar {$b}`
29
- // template = ['foo ', ' bar ', '']
+ // template = ['Dear ', ' and ', '']
30
return template.reduce((result, current, index) => {
31
return `${result}Mr.${expressions[index - 1]}${current}`
32
})
0 commit comments