I have two objects and would like to return true if both of them have one key-value pair that is the same, for example.
let obj1 = {
  toyota: 'yellow'
  honda: 'silver'
  mazda: 'black'
}
let obj2 = {
  nissan: 'black',
  bmw: 'yellow',
  honda: 'silver',
}
const MatchKey = function (obj1, obj2, key) {
 let obj1 = JSON.stringify(obj1)
 let obj2 = JSON.stringify(obj2)
}
since both objects have the same key/value pair (honda: 'silver') the function would return true.
 
     
     
    