UNPKG

@maherunlocker/custom-react-table

Version:
4 lines 248 B
// return nested id of object // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types export const getNestedId = (fn) => (o) => [fn(o), ...(o.subRows || []).flatMap(getNestedId(fn))]; //# sourceMappingURL=getNestedId.js.map