Javascript String empty()

Description

Javascript String empty()


// alias of isEmpty
String.prototype.empty = function() {
  return this == '';
};

Javascript String empty()

String.prototype.empty = function() {
  return this.length == 0;
}

Javascript String empty()

String.prototype.empty = function empty () {
  return this.clean() === '';
};

Javascript String empty()

String.prototype.empty = function() {
    return ( this == "" || this.length == 0 ) ?true:false;
}



PreviousNext

Related