Entfernen Sie Nullwerte aus dem JSON -Objekt in JavaScript
You can use the filter() method to remove null values from a JSON object:
let data = { a: 1, b: 2, c: null };
let newData = data.filter(item => item !== null);
console.log(newData); // { a: 1, b: 2 }
Caffeinated Developer