'Remove object from array of objects based on value
I have this array of objects:
var data = [{
"code": "8252",
"name": "Věšák Sentini, antik mosaz",
},
{
"code": "8253",
"name": "Věšák Sentini, matný chrom",
},
{
"code": "8254",
"name": "Věšák Sentini, antik měď",
},
{
"code": "8261",
"name": "Věšák Kasper I, matný nikl",
}
]
How can I remove the object from array that has code == 8254 please?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
