My information:
[
{
"configData":[
{
"repoSettings":[
{
"BaseURL":"45df16eb-55f9-48a9-9df8-428984524d7b",
"CurrentBranch":"Publish_1522323990",
"CurrentHeadSHA":"85c599a6ab3ecf8bfb469479da",
"RepositoryId":1528,
"RepositoryName":"45df16eb-55f94524d7b"
}
]
},
{
"pageSettings":[
{
"PageCss":[
],
"PageExternalCss":[
],
"PageExternalJs":[
],
"PageLayout":"default",
"PageMetaInfo":[
],
"PageMetacharset":"UTF-8",
"PageName":"index.html",
"PageSEODescription":"",
"PageSEOKeywords":"",
"PageSEOTitle":"",
"PageScripts":[
],
"PageStyles":[
],
"partials":[
{
"Header":"default"
},
{
"Footer":"default"
}
]
},
{
"PageCss":[
],
"PageExternalCss":[
],
"PageExternalJs":[
],
"PageLayout":"default",
"PageMetaInfo":[
],
"PageMetacharset":"UTF-8",
"PageName":"about.html",
"PageSEODescription":"",
"PageSEOKeywords":"",
"PageSEOTitle":"",
"PageScripts":[
],
"PageStyles":[
],
"partials":[
{
"Header":"default"
},
{
"Footer":"default"
},
{
"Sidebar":"default"
}
]
},
,
{
"PageCss":[
],
"PageExternalCss":[
],
"PageExternalJs":[
],
"PageLayout":"default",
"PageMetaInfo":[
],
"PageMetacharset":"UTF-8",
"PageName":"about.html",
"PageSEODescription":"",
"PageSEOKeywords":"",
"PageSEOTitle":"",
"PageScripts":[
],
"PageStyles":[
],
"partials":[
{
"Header":"default"
},
{
"Footer":"default"
},
{
"Sidebar":"default"
},
{
"MenuBar":"default"
}
]
}
]
}
]
}
]
Within this data, my goal is to loop through all objects in pageSettings and within each one, iterate over the partials array to search for specific key-value pairs. For example, if I have a pair with "Header" as the key and "default" as the value, I want to search for this combination across all pageSettings and partials objects. If found, return true for that specific pageSettings index. Is it achievable using Lodash? Alternatively, could you provide a code snippet to accomplish this task?