@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
22 lines (17 loc) • 433 B
JavaScript
/**
* MSKCC 2021, 2024
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
/**
* Generic utility to initialize a method that will return a unique instance id
* for a component.
*/
const setupGetInstanceId = () => {
let instanceId = 0;
return function getInstanceId() {
return ++instanceId;
};
};
var setupGetInstanceId$1 = setupGetInstanceId;
exports["default"] = setupGetInstanceId$1;