snarbies
snarbies
Object.values has an overload for array-likes and string index signatures (but not bare numeric index signatures). ```typescript values(o: { [s: string]: T; } | ArrayLike): T[]; ``` Supporting arrays makes...
It's not really inconsistent though. Index signatures and interfaces represent different things. Index signatures are "arrayish." They may not necessarily have numeric keys, but they represent collections of key/value pairs...
I don't see the appeal either, but couldn't one react the same way to JSX itself? It's also a special syntax for react that has to be transpiled.