Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function templateRaw(strings) {
- console.log(strings[0]);
- console.log(strings.raw[0]);
- console.log(strings);
- }
- templateRaw`123\n456`;
- // string
- // 123
- // 456
- // raw
- // 123\n456
- // 0: "123↵456"
- // length: 1
- // raw: ["123\n456"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement