TypeScript and JavaScript have continuously progressed over the last years, and some of the practices we built over the last decades have become outdated. Some might never have been meaningful. Below given is a list of 10 habits that we all should get rid of.

1.Don’t use strict mode

2. Determining default values with ||

3. Using any as type

4. val as SomeType

5. as any in tests

6. Optional properties

7. One letter generics

8. Non-boolean boolean checks

9. The Bang Bang operator

10. != null

#typescript #web-development #javascript #programming #typescript-4

10 Bad TypeScript Habits to Get Rid of in 2021
1.60 GEEK