param expandedRowKeys param parentKeys returns export default function shouldShowRowByExpanded ( expandedRowKeys = [ ] , parentKeys = [ ] ) { for ( let i = 0 ; i < parentKeys ?. length ; i ++ ) { if ( expandedRowKeys ?. indexOf ( parentKeys [ i ] ) === - 1 ) { return false ; } } return true ; }