Open prietales opened 2 years ago
The best practices says that ternary operator is not a good idea.
When if else only changes a variable is a bad practice, you should use ternary operator.
jorgealbertojc
The modern best practices says that "else" is not a good idea.
jorgealbertojc
The modern best practices says that "else" is not a good idea.
The modern best practices says that both ternary operator and "else" is not a good idea.
https://github.com/Marak/colors.js/blob/6bc50e79eeaa1d87369bb3e7e608ebed18c5cf26/lib/custom/trap.js#L39