Trims empty values out of a given object. Empty values are '', undefined, null, [], {}, and objects with no enumerable properties.