I\'m having a bit of trouble trying to understand what is happening in this \'for in\' loop in JS.
I created my own method trying to mimic .reduce. When
.reduce