I am working on a project which requires some pretty intricate JavaScript processing. This includes a lot of nested if-elses in quite a few places.
if
else
There won't be any difference in performance I would recommend the second example for maintainability. In general it's good practice to have one and only one possible exit point for a routine. It aids debugging and comprehension.