4 ms·
I've worked with a ton of APIs where these two aren't equivalent. Consider partial object updates. "null" means "explicitly set a field to null", whereas undef
by bpicolo 6y ago
I've worked with a ton of APIs where these two aren't equivalent.
Consider partial object updates. "null" means "explicitly set a field to null", whereas undefined means "don't change the value of the field". The distinction is meaningful.