JS for..of and for..in
When to use for..of and for..in in Javascript?
Looping through Arrays and Objects
By definition, the main difference between for..of and for..in is on where each of them looks as they loop through an array or object. As explained on Stackoverflow by ...
·3 min read·gabslach.hashnode.devRead the article
Dinys Monvoisin
Would not it better off saying that
for...ofis used with array type values only rather than saying it generates an error message?