3 ms·
That's the point though. I can easily do a null check to handle whether or not to process/use the value. For instance, if I'm fetching some data I usually want
by ZephyrBlu 6y ago
That's the point though. I can easily do a null check to handle whether or not to process/use the value.
For instance, if I'm fetching some data I usually want to initialize the data variable as null for a couple of reasons.
1) null is not truthy, empty arrays and objects are
2) It shows that the variable is supposed to be filled, unlike undefined