Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function h(){
- const texts = []
- const rec = (strs, ...values) => {
- if(strs.length === 1 && strs[0] === ""){
- return texts.join("`")
- }else{
- texts.push(String.raw(strs, ...values))
- return rec
- }
- }
- return rec
- }
- function here(strs, ...values){
- const texts = []
- texts.push(String.raw(strs, ...values))
- const rec = (strs, ...values) => {
- if(!strs){
- return texts.join("`")
- }else{
- texts.push(String.raw(strs, ...values))
- return rec
- }
- }
- return rec
- }
Add Comment
Please, Sign In to add comment