'Accessing nested values in SFCC

enter image description here

Okay, this is what bothers me. I am not quite sure how to access specific value that I need. I have (from picture) customReference and all I need from that is that 0 index because inside that are the values that I need to test. My problem is that the values inside that index[0] is also an array and I need to access index[0,1] to grab their value ( 'gmail' in this case on pic). So, to be clear I need to access value inside every index inside values that is in index[0] of customReference. I can't figure it out through debugger if I am getting array or object or map so I don't know how to write my code. Any help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source