Type Guards
Narrow types at runtime with type guards.
typeof Guards
instanceof Guards
in Operator Guards
Custom Type Guard Functions
Array Type Guards
Truthiness Guards
Asserting Type Guards
Exercise: Create Type Guard
Create a type guard for checking shapes:
التالي · الدرس 29 من 34
Discriminated Unions
قراءة 1 دقيقة
أنهيت 28 من 34 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

