Daily JavaScript Tips #1
Pass arguments as an object.
The code becomes much more clear and easily understandable as the name of the properties is clearly visible to you as well any code reviewer.
Don't do this ❌
const user = (name, email, proUser) => {
// Logic goes ...
h.dhairyashah.dev1 min read