DEV Community

Discussion on: You don't need null

Collapse
 
loucyx profile image
Lou Cyx

We have "optional" with JS, you just use default values (only works if the passed value is undefined), nullish coalescing and optional chaining (this last two work withnull as well). TS after all is just a superset of JS, the types it uses are just the explicit version of JS types (also seen in JSDocs).

Thanks for not getting mad. Trust me, there are some folks here pretty vocal about their opinions not matching with mine 😅

Collapse
 
leob profile image
leob

People should remain rational, getting all emotional over tech debates is a bit stupid lol

Some comments have been hidden by the post's author - find out more