I have an array in data() { return { exampleArray: [] } }
In mounted(), I call a function that appends to that array.
The result when I console.log(this.exampleArray) is a proxy.
I want to loop through that array in a different function. From looking at other solutions, I should use toRaw to get the array.
So I tried console.log(toRaw(this.examplearray)). What I see in the console is an empty array: [], but if I expand it, I can see the contents inside. Console Picture
However, console.log(toRaw(this.exampleArray).length) is returning length 0. So I can't hit it with a forEach loop.