FlashcardBeginner

any vs unknown

any disables type checking, while unknown stays type-safe until narrowed.

Question

What is the difference between `any` and `unknown`?

Click to reveal answer