Skip to content
RED SAGSkills
medium10 pts · first answer countsjavascripttypescriptnarrowing

Narrowing with the in operator

type Admin = { permissions: string[] } and type Guest = { expiresAt: Date }. In if ("permissions" in user) { ... }, what is user narrowed to?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions