Not every Stackoverflow answer is correct. Participants are humans and we made mistakes from time to time as well...
It is best one select the best answer that addresses the root cause, better if one explains the problem deep down. An interesting post I encountered today where the answer could be misleading the OP to mask his greater problem.
https://stackoverflow.com/questions/45271257/node-js-unable-to-use-callback-in-if-statement/45271302?noredirect=1#comment77505792_45271302
Not every Stackoverflow answer is correct. Participants are humans and we made mistakes from time to time as well...
It is best one select the best answer that addresses the root cause, better if one explains the problem deep down. An interesting post I encountered today where the answer could be misleading the OP to mask his greater problem.
https://stackoverflow.com/questions/45271257/node-js-unable-to-use-callback-in-if-statement/45271302?noredirect=1#comment77505792_45271302