Instruction: Explain the concept of Type Guards and how they are used with an example.
Context: This question tests the candidate's knowledge of Type Guards and their ability to utilize them to influence the type checking behavior of TypeScript.
easy
easy
medium
medium
medium
hard
hard
hard
hard