I wrote:
function template_expand(s, d) {
return s.replace(/%{(\w+)}/g, (s, p) => d[p]);
}
No harm, but the arrow's first param should be `_` (for don't-care), not shadowing-harmlessly `s`.
/be _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

