DEV Community

Zevan Rosser
Zevan Rosser

Posted on

1 1

Golfed Join

const str = ['one','-','two'].join``;
console.log(str);
// outputs "one-two"
Enter fullscreen mode Exit fullscreen mode

With tagged templates you can pass a template string to a function without parens.

See more stuff like this over @ Snippet Zone

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more