4 ms·
Quite often the best thing to do is: 1. Wait until TS complains about a possible null 2. If you have a good default value, use that instead 3. If not, throw
by bluepnume 4y ago
Quite often the best thing to do is:
1. Wait until TS complains about a possible null
2. If you have a good default value, use that instead
3. If not, throw a meaningful error
Either way, don't propagate the nulls further than they need to go.