Javascript String isNullOrEmpty()

Description

Javascript String isNullOrEmpty()

String.prototype.isNullOrEmpty = function(){
    return !(this && this.length > 0);
};

Javascript String isNullOrEmpty()

String.prototype.isNullOrEmpty = function () {
    return this == false || this === '';
};



PreviousNext

Related