Last active
March 27, 2018 22:40
-
-
Save mraerino/bfefcaecfcc10f96b383b45522e91fad to your computer and use it in GitHub Desktop.
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
<script type="module"> | |
function parseImpl(parts, ...values) { | |
const templ = document.createElement('template'); | |
templ.innerHTML = parts[0].concat(values.map((val, key) => val + parts[key+1]).join('')); | |
return templ.content; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment