Earlier quoted context omitted.
Digs through some of my Javascript Twitter rants The latest I ran into, `Object.keys(x).length` appears to recalculate length on every call. There doesn't appear to be a fast (and idiomatic) way to get top level object size in Javascript without using a secondary incrementor.
This seems like a very odd example in many ways: 1. How on Earth would you expect a type validation library to assist with this example? 2. Looking at that example, I would expect that of course it would need to do work on every call. That is, Object.keys(x) is a function call that takes an object and returns a newly constructed array. So I'm not exactly sure what you would expect to be optimized here. I guess what y…
We don't, thus "[TypeScript] didn't solve the biggest issue[s] we had with Javascript".
Also just noticed that I used the singular "issue", I meant the plural "issues", as there are many.
If I had an option to use an alternative to JavaScript, I would in a heart beat. But it's not practical to not use Javascript