export function isNotAllBlanks ( value , minlength ) { return value . replace ( /\s/g , '' ) . length >= minlength ; } export function maxNaturalNumber ( value , maxInt ) { const valueReal = + Number ( value ) ; const maxInteger = maxInt ; return valueReal >= 0 && valueReal <= maxInteger ; } export function validateEndDate ( endValue , startValue ) { return new Date ( startValue ) . getTime ( ) > new Date ( endValue ) . getTime ( ) ; } export function startDateGreaterThanEndDate ( startValue , endValue ) { return endValue !== null ? validateEndDate ( endValue , startValue ) : true ; }