console.log(x, obj.fares) //return undefined
output
adultFare
Object {adultFare: "9.00", childFare: null, seniorCitizenFare: null, disabledFare: null,}
How can I get adultDare value? do I have to loop the key? I expect obj.fares.x can get 9.00 since x's value is adultFare.