Answers for "remove empty objects from array lodash"

0

remove empty object from array lodash

var myArrayFiltered = myArray.filter((ele) => {
  return ele.constructor === Object && Object.keys(ele).length > 0
});
Posted by: Guest on April-30-2020
0

remove empty objects from array lodash

_.filter(myArray, _.isEmpty)
Posted by: Guest on August-05-2021

Code answers related to "remove empty objects from array lodash"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language