Created
August 23, 2016 08:26
-
-
Save area73/47fdb82955a77163c2a4779159183d7f to your computer and use it in GitHub Desktop.
quitar / obtener elemento de un array de objectos con filter()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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