Remove array element based on object property
2022-08-29 23:28:03
I have an array of objects like so:
var myArray = [
{field: 'id', operator: 'eq', value: id},
{field: 'cStatus', operator: 'eq', value: cStatus},
{field: 'money', operator: 'eq', value: money}
];
How do I remove a specific one based on its property?
e.g. How would I remove the array object with 'money' as the field property?