Is a blank string - Node.js String

Node.js examples for String:String Value

Description

Is a blank string

Demo Code

String.prototype.isBlank = function() {
    if (this == void 0) {throw new Error("Illegal argument error.");}
    return this == null || this.trim().length == 0;
}

Related Tutorials