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