DEV Community

Discussion on: 7 Useful Javascript Tips

Collapse
 
westim profile image
Tim West

From my experience, 2, 3 & 5 aren't significantly faster and make the code harder to read/understand. I avoid these by enabling eslint rules to disable implicit coercion.

Tip 7 can soon be replaced by the new ES2020 Promise.allSettled() feature.

Collapse
 
__victorchan profile image
Victor Chan

True, readability is a good point. Thanks for the feedback!