myObject = { "key": "value", "key2":"value2" } Object.keys(myObject); //console.log(Object.keys(myObject)) = ["key", "key2"]