>_
SWE Maxx
Questions
Quizzes
Daily challenge
System design
My attempts
Sign in
☀
☾
Light mode
Dark mode
Loading question…
Sign in
← Question bank
TypeScript · Matching
Difficulty: Medium
Match the descriptions to these narrowing terms: Typeof guard, Instanceof guard, In-operator guard, Type predicate.
Narrowing
Concept relationships
Choose a match for every item. Use each answer once.
Instanceof helps narrow class instances according to their runtime inheritance relationship.
Choose a match
Typeof guard
In-operator guard
Type predicate
Instanceof guard
A type predicate connects a Boolean result to a type refinement for the checked value.
Choose a match
Typeof guard
In-operator guard
Type predicate
Instanceof guard
Typeof checks let TypeScript refine a value to compatible primitive alternatives.
Choose a match
Typeof guard
In-operator guard
Type predicate
Instanceof guard
The in operator helps distinguish union members by property availability.
Choose a match
Typeof guard
In-operator guard
Type predicate
Instanceof guard
Check answer
More in TypeScript →
Match the descriptions to these narrowing terms: Typeof guard, Instanceof guard, In-operator guard, Type predicate. | SWE Maxx