use Object.keys() where appropriate