array = ['data', 'category', 'hour'];
object = {
"status": {
"type": "INFO",
"messages": []
},
"data": {
"id": 1,
"tenant": "675832",
"process": "6911d872-35f8-11ea-8697-001dd8b71c20",
"category": "resquests"
"time": {
hour: "12",
minute: "30"
}
}
To achieve my goal, I'm exploring methods to verify if the keys in the object have corresponding values found within the array.
I initially attempted a strategy involving splitting the array at dots and attempting to filter both arrays and objects simultaneously, but unfortunately, this approach did not yield successful results.
const array = inputValue.split('.').map((item) => item);