SHARE
TWEET

Untitled

a guest May 24th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function templateRaw(strings) {
  2.   console.log(strings[0]);
  3.   console.log(strings.raw[0]);
  4.   console.log(strings);
  5. }
  6.  
  7. templateRaw`123\n456`;
  8. // string
  9. // 123
  10. // 456
  11.  
  12. // raw
  13. // 123\n456
  14.  
  15. // 0: "123↵456"
  16. // length: 1
  17. // raw: ["123\n456"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top