3 ms·
I feel like the type guarding programming method present in some packages, is a hangover from node js development prior to typescripts rise in popularity. So n
by twosdai 1y ago
I feel like the type guarding programming method present in some packages, is a hangover from node js development prior to typescripts rise in popularity.
So now some people just do it by habit.
Honestly the only place having code like that I see being useful is at the controller level inside an api or other untrusted input validation for an application.