UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

1 lines 272 B
export function shallowEqual(t,e){if(t===e)return!0;if(!(t instanceof Object&&e instanceof Object))return!1;const n=Object.keys(t),{length:r}=n;if(r!==Object.keys(e).length)return!1;for(let c=0;c<r;c+=1){const r=n[c];if(!(r in e))return!1;if(t[r]!==e[r])return!1}return!0}