Javascript – How can I push to an array inside an object that is returned by a function?
I am trying to access and alter an array that is within an object that is being returned by a function. I built two mock arrays within objects (The first on its own, the second inside a function.) The first…