Outlook_Addin_LLM/node_modules/@fluentui/react-spinbutton/lib/utils/getBound.js

12 lines
280 B
JavaScript
Raw Normal View History

export const getBound = (value, min, max)=>{
if (min !== undefined && value === min) {
if (max === min) {
return 'both';
}
return 'min';
} else if (max !== undefined && value === max) {
return 'max';
}
return 'none';
};