[javascript] How to remove undefined and null values from an object using lodash?

To remove undefined, null, and empty string from object

_.omitBy(object, (v) => _.isUndefined(v) || _.isNull(v) || v === '');