I'm here to share my knowledge with you and improve my English skills. If you see that I made a mistake somewhere, I will be happy if you let me know about it. :)
This is nice tip! In this case else statement is totally unnecessary and avoid it can improve code readability. If I'm not wrong ESLint can help respect this, because it has rule no-return-else or something like that.
This is nice tip! In this case
else
statement is totally unnecessary and avoid it can improve code readability. If I'm not wrong ESLint can help respect this, because it has ruleno-return-else
or something like that.Thanks man! Yes, the idea is to improve code readability!
Oh, I don’t know about this ESLint rule, but it can be very helpful!