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"
}
}
I need to check if object has keys with same value contained in array.
I tried split array by dot, and then filter both array and object but it fails.
const array = inputValue.split('.').map((item) => item);