I have this object:
var data = {"id": 1, "second": "abcd"};
These are values from a form. I am passing this to a function for verification.
If the above properties exist we can get their values with data["id"] and data["second"], but sometimes, based on other values, the properties can be different.
How can I get values from data independent of property names?
 
     
     
     
     
     
     
    