Skip to content

Instantly share code, notes, and snippets.

@area73
Created August 23, 2016 08:26
Show Gist options
  • Save area73/47fdb82955a77163c2a4779159183d7f to your computer and use it in GitHub Desktop.
Save area73/47fdb82955a77163c2a4779159183d7f to your computer and use it in GitHub Desktop.
quitar / obtener elemento de un array de objectos con filter()
var myArray = [
{field: 'id', operator: 'eq', value: id},
{field: 'cStatus', operator: 'eq', value: cStatus},
{field: 'money', operator: 'eq', value: money}
];
myArray = myArray.filter(function( obj ) {
return obj.field !== 'money';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment