Hacker News new | ask | show | jobs
by giornogiovanna 2334 days ago
Ah, right, my bad.

In my defense, JavaScript treats a value of `undefined` differently from an unset field / variable (e.g. when testing `object.hasOwnProperty('field')`).

1 comments

JavaScript has too many "non-visible" value types in my opinion. This makes for both messy code and messy debugging.