UNPKG

@maherunlocker/custom-react-table

Version:
9 lines 514 B
"use strict"; 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