I need to determine if objects are super/subsets of one another.
Given a function hash that generates fixed-length string hashes from arbitrary objects:
const fooHash = hash({foo: "foo"})
const barHash = hash({bar: "bar"})
const fooBarHash = hash({foo: "foo", bar: "bar"})
Is there a combine function, such that:
combine(fooHash, barHash) === fooBarHash
?
If yes, how would the combine function work?
$.extend(obj1,obj2)?