I want to compare two objects as below:
First object:
const permissions = {
"statistics":{"list":"1"},"audit":{"list":"1"}}
}
Second object:
const userPermission =
{
"audit":{"list":"1"}
}
So, if the second object has some value the same as the first object then return true.
In this sample I want it return true. Becuase, audit has same properties.