I'm working on a Next.js project implementing a class using typescript, but I stumbled across this problem that I can't figure out what is going on.
This is the console.log line:
console.log('💀', this, this._products, this._products[0], this._products.length);
but this is the result:

note that the _products inside the object has 3 items, but the log shows an empty array with 3 items inside, the this._products[0] as undefined and the .length as 0.
I double check where the itens are pushed into the array and everything looks fine. What seems weird for me is the fact that the console shows the array as empty and with 3 items at the same time.