Sorry for nitpick, but in the TypeScript example, should it be
for (const vec of vecs)
Instead of: for (const vec in vecs) for (const vec of vecs)
Instead of: for (const vec in vecs)Mnemonic: of = objects fail, in = index names
Yeah yeah objects can be arrays and iterable but you know what I mean. Best I could do! If you dont like just use the “in” mnemonic and Sherlock Holmes.