Javascript String isCommaSeparatedNumber()

Description

Javascript String isCommaSeparatedNumber()


String.prototype.isCommaSeparatedNumber = function() {
  return this.match(/^\d+(?:,\d+)*$/) == null ? false : true;
}



PreviousNext

Related