code: function isNumeric(val){
    return val && !isNaN(Number(val)) && (!_.isString(val) || ((_.isString(val) && val[val.length-1] !== '.')));
  }
docs: Returns true is value is numeric based on HTML5 number input field logic. Trailing decimals are considered non-numeric (ex `12.`).