.reduce()for any other purpose, or is it a new method for you? You can read the MDN documentation on it, of course, and I found this article from the forum to be helpful to me. It took a little while for me to get my head wrapped around how it works.
reduce. it's the swiss army knife. there are so many things you can do with it. any time you have to derive a value from a collection, or transform a collection into a different structure, def look at
this.readyState=4is the error then