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.
Software Engineer | https://www.mohammadfaisal.dev/