How can I remove empty object in from an array in JS May 19, 2023 by Tarik var newArray = array.filter(value => Object.keys(value).length !== 0);