What's the difference between a type guard (x is T) and an assertion function (asserts x is T)?
The answer
Answer it out loud first, the way you would in the interview. Then compare.
Checking your sign-in…