Is there a method to return the properties of an object?

Sorry if it's sth obvious!