sortObj Check if two object are loosely equal - that is, do they have the same shape? JSON.stringify(sortObj(obj1)) === JSON.stringify(sortObj(obj2));