by IshKebab · 2y ago · 0 comments
In any case this is a bad example because Typescript exists.
I only tried to highlight some edge cases that I personally don't like to spend energy on, trying to get it right, when writing code. Btw, isNumber is a dynamic call in the example and unrelated to TypeScript. TypeScript doesn't exist at runtime.