String.substitute

Kevin Smith zenparsing at gmail.com
Wed Aug 12 15:14:21 UTC 2015


>
> let yearSentence = ({year:2015}=>`This year is ${year}`)();
>

Enclosing the template string inside of a function is the way to go.  Let's
call this one done.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150812/6583e117/attachment.html>


More information about the es-discuss mailing list