Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove all objects from array where value

for (var i = myArray.length - 1; i >= 0; --i) {
    if (myArray[i].field == "money") {
        myArray.splice(i,1);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #remove #objects #array
ADD COMMENT
Topic
Name
9+1 =