lodash remove properties with empty values in deep code example Example: lodash remove null from object _.omitBy({ a: null, b: 1, c: undefined, d: false }, _.isNil)