I would like to compare these two objects and return the index that is different.
In this case it is to return the 4th of the second object (it will always be different in the second).
var arr = {
1 : 'Corsa',
2 : 'Ka',
3 : 'Pálio'
};
var foo = {
1 : 'Corsa',
2 : 'Ka',
3 : 'Pálio',
4 : 'Jeep'
};
How do I do this in JavaScript or using jQuery?