_.omitBy({ a: null, b: 1, c: undefined, d: false }, _.isNil)
_.pickBy({ a: null, b: 1, c: undefined }, _.identity);
>> Object {b: 1}
_.pickBy({ a: null, b: 1, c: undefined }, _.identity);
>> Object {b: 1}
var myArrayFiltered = myArray.filter((ele) => {
return ele.constructor === Object && Object.keys(ele).length > 0
});