When I use Logger.log(response.data.phone)
, the following data is displayed in my log:
[{label=work, primary=true, value=5558675309}, {label=work, value=6108287680, primary=false}, {value=6105516373, label=work, primary=false}]
My goal is to have the two phone numbers returned as 5558675309, 6108287680
.
I have attempted
Logger.log(response.data.phone.value)
to no avail. Also, I have tried ...phone['value']
and ...phone[0].value
, which does return the first phone number 5558675309
. However, I would like it to return all value
values whenever I input the phone
key. How can I modify the logger to achieve this?