| ▲ | worksonmine 5 hours ago | |
> Why even use else if with return... What is the problem with that? How would you write that snippet? It is common in the new functional js landscape, even if it is pass-by-ref. | ||
| ▲ | Overpower0416 5 hours ago | parent [-] | |
Using guard clauses. Way more readable and easy to work with. | ||