tips

Any vs Unknown

any vs unknown in Typescript – which one should you pick

I was quite curious about the fact that Typescript supports both any and unknown types which can be used to store any type of data without strict type checking. I had no Idea why there are two types for the same reason. I recently came to know their differences. Lets understand with below snippets. Photo …

any vs unknown in Typescript – which one should you pick Read More »