I have a JavaScript-array with objects filled in and want to remove every object with no data. It might look like this:
var myArray = [ {id: \"28b\", text:\"Phil
try (ECMA5+):
var myArrayFiltered = myArray.filter((ele) => { return ele.constructor === Object && Object.keys(ele).length > 0 });