by huydotnet · 4y ago · 0 comments
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.