Created
December 29, 2017 14:14
-
-
Save alufers/f04f10eadbf0502055a0aa12dca88bc7 to your computer and use it in GitHub Desktop.
A tagged template literal that does nothing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function normal (template, ...expressions) { | |
return template.reduce((accumulator, part, i) => { | |
return accumulator + expressions[i - 1] + part | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment