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