Last active
July 25, 2016 14:05
-
-
Save savelee/5fa1aa253d246cf38558e7e0177fe11f to your computer and use it in GitHub Desktop.
Example Tagged Templates (template functions)
This file contains 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
//ES2015 | |
function myTag(arrLiterals){ | |
return arrLiterals[0].toUpperCase(); | |
} | |
let message = myTag`hello world!`; //HELLO WORLD! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment