So I have an array of objects called 'test', that when I print on console.log, it shows like this on chrome inspect:
[]
0: Object name
variable 1: "value1"
variable 2: "value2"
1: Object name
variable 1: "value1"
variable 2: "value2"
If I try to console.log(test[0]), it's supposed to show the first data, variable 1 and 2, but it returns undefined.
But if I try to run the same command on chrome inspect (test[0]), it return the correct values...
I've tried to iterate through the array, but it doesn't work, if I try to print "test.length", on the code it returns 0, but if I run the same command on chrome inspect it returns 2...
My guess is that it has something to do with the first line that shows on chrome inspect (the "[]" before it opens to the 0, 1...).
Any ideas??