UNPKG

reactstrap-date-picker

Version:

Reactstrap based, zero dependencies, date picker

27 lines (26 loc) 916 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getInstanceCount = void 0; var getInstanceCount = () => { if (typeof window === 'object') { if (window._reactstrapDatePickerInstance == undefined) { window._reactstrapDatePickerInstance = 0; } var next = window._reactstrapDatePickerInstance + 1; window._reactstrapDatePickerInstance = next; return next; } else if (typeof process === 'object') { if (process._reactstrapDatePickerInstance == undefined) { process._reactstrapDatePickerInstance = 0; } var _next = process._reactstrapDatePickerInstance + 1; process._reactstrapDatePickerInstance = _next; return _next; } else { console.error("Reactstrap Date Picker cannot determine environment (it is neither browser's <window> nor Node's <process>)."); return 1; } }; exports.getInstanceCount = getInstanceCount;