UNPKG

@maherunlocker/custom-react-table

Version:
8 lines 400 B
"use strict"; // return nested id of object Object.defineProperty(exports, "__esModule", { value: true }); exports.getNestedId = void 0; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types const getNestedId = (fn) => (o) => [fn(o), ...(o.subRows || []).flatMap((0, exports.getNestedId)(fn))]; exports.getNestedId = getNestedId; //# sourceMappingURL=getNestedId.js.map