Javascript String isBlank()

Description

Javascript String isBlank()


String.prototype.isBlank = function() {
  return (this.trim() == "");
}

Javascript String isBlank()

String.prototype.isBlank = function() {
  return (!this || /^\s*$/.test(this));
};



PreviousNext

Related