I will try to be practical. For example, I have the following objects:
let a = {
'before': 'small',
'after': 'large',
'type': 'size'
}
let b = [
{
'before': 'small',
'after': 'large',
'type': 'size'
},
{
'before': 'large',
'after': 'small',
'type': 'size'
}
]
I need to compare them, but since the second is an array of objects, I need to "dismember" it from that array, so that they are two other objects, so I compare the three and return the different and the number of objects different, which in this case is one, but there may be many different cases. I do not know how best to do this, whether it's transforming into arrays and comparing indexes, or if it has a way of comparing it as an object itself.