Optional vs Undefined // Advanced TypeScript

preview_player
Показать описание
A common TypeScript question is, Is there a difference between an optional member vs a union with undefined.

🚥 Professional Courses

And the answer is yes, there is a behaviour difference between the two is what we will cover in this lesson along with guidance on when to use which syntax 🌹

Additional Resources

🏷 #basarat #5MinutesOrLess #TypeScript #JavaScript #Tutorial #AdvancedTypeScript

👇 ❤️ Subscribe for MOORE ❤️ 👇

**Feel Free To Read This Lot**

I'm Basarat, and I love helping developers. More about me:

Microsoft MVP for TypeScript
200K contributions on Stackoverflow. Top Contributor for TypeScript.
Book Author: Beginning NodeJS
Book Author: TypeScript Deep Dive
Creator of multiple hot ✨ed Github Open Source projects

Рекомендации по теме
Комментарии
Автор

All this while I thought they were all the same

djf