To remove array element based on object property with JavaScript, we use the filter method.
For instance, we write
const newArray = myArray.filter((obj) => {
return obj.field !== "money";
});
to call myArray.filter with a callback that return an array with objects that has the field property not equal to 'money'.