UNPKG

@mskcc/carbon-react

Version:

Carbon react components for the MSKCC DSM

17 lines (14 loc) 427 B
/** * MSKCC 2021, 2024 */ /** * Generic helper used to consolidate all call sites for getting a cell id into * one method. The strategy currently is that a "cellId" is just the combination * of the row id and the header key used to access this field in a row. * * @param {string} rowId * @param {string} header * @returns {string} */ const getCellId = (rowId, header) => `${rowId}:${header}`; export { getCellId };