I rarely work with JS, but I had to and unexpectedly discovered a very strange (in my opinion) behavior of standard cycles. Those. I write for example for (let index in data) , but in most languages, the element itself goes with the loop parameter, not its key ... I even stuck on this error for a short while before I realized that it was the key that was transmitted there. And how can I do something to return the item too? Or just write the let item = data[index] ? Well, what kind of tuple can come back if they are there ... Or something else.
For example, as in python: for key, value in data.iteritems():