I can print the matrix in square but it only returns the last value that was requested, it should return 3 different data but it returns the same

I am trying to convert an array of objects to an array but it duplicates the data

I can print the matrix in square but it only returns the last value that was requested, it should return 3 different data but it returns the same

I need to be able to bring the details of a 3 products, price, quantity and stock