"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getKey = void 0;
const getKey = (option, keyId, getOptionLabel) => {
    if (typeof option === 'string') {
        return option;
    }
    if (keyId) {
        const key = option[keyId];
        return typeof key === 'number' ? key.toString() : key;
    }
    return getOptionLabel(option).toString();
};
exports.getKey = getKey;
