DEV Community

Sam Jarman 👨🏼‍💻
Sam Jarman 👨🏼‍💻

Posted on

2

Ask DEV - What are your less well known tips for cleaner, better JavaScript/TypeScript?

We've all seen object destructuring, using prettier and eslint, but what else should we look into? What are your less well known tips for cleaner, better JavaScript/TypeScript?

Top comments (1)

Collapse
 
stoyanystoyanov profile image
Stoyan

In Typescript, force yourself to never use "any", I was amazed how much I was using it, and with the change I have to create interfaces/classes/enums, and all of this makes the code more readable and well structured.

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