0
Summarizing , I put in String format to illustrate here. I have an array as follows :
"[{"cp_57b326e91ac094817aaf37f2":"1.Folha(Ponto)"}]"
And I also have the following object array
"[{"cp_57b326e91ac094817aaf37f2":["1.Folha(Ponto)","2.Relogio"]}]"
I would like to be able to do a function to check if the first array matches in some option of the second array. The keys are the same, but in the first array there will always be only one string as property, and in the second array, the object will have an array of strings.
In this example there is intersection, I tried to use Lodash using intersectionWith, but I couldn’t, I imagine because the second array has an array inside the obj.