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