UNPKG

@validate-me/core

Version:

Main package for `validate-me`. It contains everything to run client side validations with any kind of JS framework or with vanilla JS.

8 lines (5 loc) 168 B
const max = rawMaxValue => { const maxValue = isNaN(rawMaxValue) ? rawMaxValue : parseInt(rawMaxValue); return value => value <= maxValue; }; export default max;