Exclude members whose value is undefined from objects