Guest User

Untitled

a guest
May 24th, 2019
56
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