I would like assistance with removing any objects where the inspectionScheduleQuestionId is null using JS. How can we achieve this?
Thank you.
#data
const data = [
{
"id": 0,
"inspectionScheduleQuestionId": 1,
"inspectionScheduleConfirmationId": 0,
"description": "65"
},
{
"id": 0,
"inspectionScheduleQuestionId": 10,
"inspectionScheduleConfirmationId": 0,
"description": "656"
},
{
"id": 0,
"inspectionScheduleQuestionId": null,
"inspectionScheduleConfirmationId": 0,
"description": 6
},
{
"id": 0,
"inspectionScheduleQuestionId": null,
"inspectionScheduleConfirmationId": 0,
"description": 21
},
]