const myArray = [ { status: null }, { rooms: 2 }, { bathrooms: 3 }, { vaccum: null } ]
I am working with the above array and I need to filter out any objects that have a property value of null, regardless of what the property is.
Because the properties in the objects are not consistent, using this code won't work:
const filteredArray = myArray.filter(property => {
property.status == null
})