This snippet will give you the IsEmpty function for Javascript.

Sample Javascript

String.prototype.IsEmpty = function(text) {
	return this.valueOf() || text || "";
};

2 thought on “IsEmpty function for Javascript”

Leave a Reply