Entfernen Sie leere Objekte aus Array Lodash
_.filter(myArray, _.isEmpty)
Yellowed Yak
_.filter(myArray, _.isEmpty)
_.omitBy({ a: null, b: 1, c: undefined, d: false }, _.isNil)
var myArrayFiltered = myArray.filter((ele) => {
return ele.constructor === Object && Object.keys(ele).length > 0
});