51 items
Narrowing Invalidation
FlashcardType Guards vs Type Assertions
Slides / VideoNarrowing the unknown Type
Slides / VideoControl Flow Analysis and Narrowing Scope
Slides / VideoAssertion Functions with 'asserts'
Slides / VideoExhaustiveness Checking with never
Slides / VideoDiscriminated Unions and Tagged Narrowing
Slides / VideoUser-Defined Type Guards with 'is'
Slides / VideoNull and Undefined Narrowing
Slides / VideoEquality Narrowing with === and switch
Slides / VideoTruthiness Narrowing
Slides / VideoThe in Operator for Property Checking
Slides / Videoinstanceof Type Guards
Slides / Videotypeof Type Guards
Slides / VideoWhat Type Narrowing Is
Slides / Videoin Operator Narrowing
FlashcardNarrowing Out null and undefined
FlashcardExhaustiveness Checking with never
FlashcardDiscriminated Unions
Flashcardinstanceof Type Guards
FlashcardControl Flow Analysis Narrowing
FlashcardAssertion Functions (asserts)
FlashcardArray.isArray Narrowing
FlashcardUser-Defined Type Guards (is)
FlashcardType Assertions vs Type Guards
FlashcardEquality Narrowing
Flashcardtypeof Type Guards
FlashcardTruthiness Narrowing
FlashcardNon-Null Assertion Operator (!)
FlashcardNarrowing the unknown Type
FlashcardFilter Callback Missing Type Predicate
Code QuizHelper Function Loses Narrowing
Code QuizWrong Null Check Misses Undefined
Code QuizEquality Narrowing Dead Branch
Code QuizUsing unknown Without Narrowing
Code QuizTruthiness Narrowing Drops Zero
Code Quiztypeof Cannot Detect Arrays
Code QuizOptional Chaining Yields Possibly Undefined
Code QuizReassignment Resets Narrowing
Code QuizNon-null Assertion Hides Real Bug
Code Quiztypeof Guards for Primitives
QuizArray.isArray as Type Guard
QuizNarrowing Loss in Closures
QuizNarrowing Literal and Union Types
Quiznever in Exhaustiveness Checking
QuizNarrowing via Assignment
QuizNon-null Assertion Operator
QuizType Predicate Return Effect
QuizControl Flow Analysis Basics
QuizEquality Narrowing
QuizTruthiness Narrowing
QuizThe in Operator for Property Checking
Learn how the in operator narrows union types by checking whether a property exists on an object.
