DEV Community

Discussion on: Advanced TypeScript Types cheat sheet (with examples)

Collapse
 
khrisl33t profile image
kHRISl33t

Actually it's just personal preference to have null values instead of undefined.
The example I provided is actually not that great, because I tend to use this more with objects and their properties.