Skip to content

Is there a rule for preferring if / else to initialising a variable and then overriding it? #14250

Answered by nzakas
guilhermesimoes asked this question in Q&A
Discussion options

You must be logged in to vote

No there isn’t. You can see all core rules here https://eslint.org/docs/rules/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@guilhermesimoes
Comment options

Answer selected by guilhermesimoes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants