Re:Bad TypeScript Habits
by WA on Wednesday February 03, 2021 @03:25AM
(#26011699)
Thing is, other parts of the code might actually serialize and unserialize objects. If you rely on a prop being 'undefined' meaning "prop is unknown like the firstName", as OP suggested, you might be in for a surprise.
[ Parent
| on HN ]
There are no comments on this comment yet.