Is it possible to get the object property name as a string
person = {}; person.first_name = \'Jack\'; person.last_name = \'Trades\'; person.address = {}; per
I know a best practice that using Object.keys(your_object). It will parse to array property name for you. Example:
var person = { firstName: 'John', lastName: 'Cena', age: '30' }; var listPropertyNames = Object.keys(person); //["firstName", "lastName", "age"]
I hope this example is useful for you.