UNPKG

@preact-hooks/unistore

Version:

A custom Preact hook to wire up components to Unistore.

2 lines (1 loc) 207 B
export default(e,t)=>{var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var l=0;l<r.length;l++)if(!Object.prototype.hasOwnProperty.call(t,r[l])||e[r[l]]!==t[r[l]])return!1;return!0};