All I can say is the writers of the book “Maintainable Javascript” think it’s a good practice to follow to write enterprise applications.
For me I think the ternary operators were not meant to do the work of if-else so following the rule can’t hurt.
All I can say is the writers of the book “Maintainable Javascript” think it’s a good practice to follow to write enterprise applications.
For me I think the ternary operators were not meant to do the work of if-else so following the rule can’t hurt.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
Software Engineer | ReactJS | NodeJS | AWS - https://www.mdfaisal.com/