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 😅
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 withnullas 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 😅
People should remain rational, getting all emotional over tech debates is a bit stupid lol