I searched if this question is present here, but can't find it.
Say we have two objects and we want to check if the matching keys are equal, for example:
const style1 = {
color: 'brown',
backgroundColor: 'blue',
border: '3px solid blue'
}
const style2 = {
fontSize: '16px',
padding: '10px',
color: 'brown'
}
The result of something like:
isMatchingKeysEqual(style1, style2)
should return true