I have an array that looks like this:
cardNumber: "2344234454562036"
cardType: "Visa"
cardholderName: "Yeyy"
cvv: "123"
expiryMonth: 12
expiryYear: 2022
postalCode: "52636"
redactedCardNumber: "••••••••••••2036"
__proto__: —'
I need to get the value of redactedCardNumber
from that array.
The first thing that I am confused about is that when i print the above 'array' in the console, it actually show an object before everything! so is this an array
or an object
?
also, what is the best way of getting the specific item like 'redactedCardNumber
' from it?