IsEmpty function for Javascript

This snippet will give you the IsEmpty function for Javascript.

Sample Javascript

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

Please Share us:
Please rate this snippet

2 thoughts on “IsEmpty function for Javascript

Leave a Reply