I need help figuring out how to update a value in an object array.
The current object array is structured like this:
objArr = [
{
"id": "123",
"name": "abc"
},
{
"id": "null",
"name": "null"
}
];
What I want to achieve is to remove any objects in the array where the value is null, making it look like this:
objArr = [
{
id: "123",
name: "abc"
}];
Does anyone have a solution for this?