dist/validators/Validators.js
function minValue(bound, formatError) {
        'use strict';
        return function (value) {
            if (value || !isNaN(parseFloat(value))) {
                var intValue = Number(value);
                if (!isNaN(intValue) && intValue < bound) {
                    return formatError(intValue);
                }
            }
            return '';
        };
    }
function minValue(bound, formatError) {
        'use strict';
        return function (value) {
            if (value || !isNaN(parseFloat(value))) {
                var intValue = Number(value);
                if (!isNaN(intValue) && intValue < bound) {
                    return formatError(intValue);
                }
            }
            return '';
        };
    }
function minValue ( bound , formatError ) { 'use strict' ; return function ( value ) { if ( value || ! isNaN ( parseFloat ( value ) ) ) { var intValue = Number ( value ) ; if ( ! isNaN ( intValue ) && intValue < bound ) { return formatError ( intValue ) ; } } return '' ; } ; }
Returns a validator that checks if a number is greater than the provided bound
@param bound The bound
@param formatError a callback which takes the length and formats an appropriate error message for validation failed
Returns a validator that checks if a number is greater than the provided bound