DEV Community

Discussion on: You don't need null

 
loucyx profile image
Lou Cyx

You're not stupid! I used to use any quite a lot before unknown was introduced, so it's ok if you're still checking before using it. The main difference is that unknown forces you to do that check, but if you still do it is ok!

 
vladivo profile image
vladivo

The thing is that today I really never use any (except for Angular and such). Absolutely forbidden! But I also wrote the implementation for jsonapi before I learnd unknown. So... 🤷😄

 
loucyx profile image
Lou Cyx • Edited

That's what happen to folks like us that were in this TypeScript game for a long time x'D

Some comments have been hidden by the post's author - find out more