How can I eliminate the properties that have null values in the following input data?
var data = [
{ "Id": "parent", "Function": "Project Management", "Phase": "(Null)" },
{ "Id": "1", "Function": "R&D Team", "Phase": "parent" },
{ "Id": "2", "Function": "HR Team", "Phase": "parent" },
{ "Id": "3", "Function": "Sales Team", "Phase": "parent" },
{ "Id": "4", "Function": "Philosophy", "Phase": "1" },
{ "Id": "5", "Function": " Organization", "Phase": "1" }
];