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