const getLabel = (option, accessor = '') => {
    if (!accessor) {
        if (option.hasOwnProperty('label')) {
            return option.label;
        }
    }
    return option[accessor];
};
const getValue = (option, accessor = '') => {
    if (!accessor) {
        if (option.hasOwnProperty('value')) {
            return option.value;
        }
    }
    return option[accessor];
};

export { getLabel, getValue };
//# sourceMappingURL=getSelectOptionValue.js.map
