3 ms·
Sorry for nitpick, but in the TypeScript example, should it be for (const vec of vecs) Instead of: for (const vec in vecs)
by huydotnet 5y ago
Sorry for nitpick, but in the TypeScript example, should it be
for (const vec of vecs)
Instead of:
for (const vec in vecs)
- janpaul123 5y agoTnx; fixing!
- quickthrower2 5y agoThat syntax of JS bugs me the most. The “in” keyword could be scrapped and have a .keys() on the object but alas back-compat. 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.