forgeplus-react/node_modules/rsuite-table/es/utils/shouldShowRowByExpanded.js

18 lines
414 B
JavaScript

import intersection from 'lodash/intersection';
export default function shouldShowRowByExpanded(expandedRowKeys, parentKeys) {
if (expandedRowKeys === void 0) {
expandedRowKeys = [];
}
if (parentKeys === void 0) {
parentKeys = [];
}
var intersectionKeys = intersection(expandedRowKeys, parentKeys);
if (intersectionKeys.length === parentKeys.length) {
return true;
}
return false;
}