I have an array
Array [
"2022-03-25",
"2022-03-10",
"2022-03-24",
"2022-03-31",
"2022-03-12",
"2022-03-23",
"2022-03-22",
"2022-03-16",
"2022-03-11",
"2022-03-26",
]
And I have the data of objects:
Object {
"2022-03-10": Object {
"marked": true,
},
"2022-03-11": Object {
"marked": true,
},
"2022-03-12": Object {
"marked": true,
},
"2022-03-16": Object {
"marked": true,
},
"2022-03-18": Object {
"marked": true,
},
"2022-03-22": Object {
"marked": true,
},
"2022-03-23": Object {
"marked": true,
},
"2022-03-24": Object {
"marked": true,
},
"2022-03-25": Object {
"marked": true,
},
"2022-03-26": Object {
"marked": true,
},
"2022-03-27": Object {
"marked": true,
},
"2022-03-31": Object {
"marked": true,
},
}
In the objects, theres is a date "2022-03-27", however, it is not in the array. What I would like to do is, if the date is not in the ARRAY, I would like to remove it from the object, or mark it as false.