interface O { [ key ] : unknown ; } const shallowDiffers = ( a , b ) => { for ( const i in a ) { if ( ! ( i in b ) ) { return true ; } } for ( const i in b ) { if ( a [ i ] !== b [ i ] ) { return true ; } } return false ; } ; export default shallowDiffers ;