UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

13 lines 372 B
export const modifyInputNumberValue = ({ value, min, max, maxLength, }) => { if (min && Number(value) < min) { return true; } else if (max && Number(value) > max) { return true; } else if (maxLength && String(value).length > maxLength) { return true; } return false; }; //# sourceMappingURL=modifyInputNumberValue.js.map