UNPKG

angular-input-masks

Version:
13 lines (11 loc) 322 B
'use strict'; module.exports = { maxNumber: function(ctrl, value, limit) { var max = parseFloat(limit, 10); return ctrl.$isEmpty(value) || isNaN(max) || value <= max; }, minNumber: function(ctrl, value, limit) { var min = parseFloat(limit, 10); return ctrl.$isEmpty(value) || isNaN(min) || value >= min; } };