Jason Warner
Feb 17, 2022

Great article. Using type assertions is often as bad as just throwing up an "any".

I tend to create guard clauses a lot more now. The benefit of guard clauses is that they compile down to javascript and you get type safety after using them.

Jason Warner
Jason Warner

Written by Jason Warner

I enjoy everything related to code and being a dev. However, my only skills are showing up and being lucky and I'm not sure if luck is a talent.

Responses (1)