@maherunlocker/custom-react-table
Version:
dynamic table based on react table v7
9 lines • 514 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterByReference = void 0;
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
const filterByReference = (tableRow, nestedRowsId, isIncluded = true) => tableRow.filter((el) => isIncluded
? nestedRowsId.find((element) => element === el.id)
: !nestedRowsId.find((element) => element === el.id));
exports.filterByReference = filterByReference;
//# sourceMappingURL=filterByReference.js.map