I am trying to add a set on unique key value pairs however when I check to see if that object is inside the object it is saying it isn't. What's the best way to see if an object already contains a different object?
const obj = {
1: {row: 1, col: 1},
2: {row: 2, col:2 }
}
const test = { row:1, col: 1 }
Object.values(obj).indexOf(test) // returns -1