Check if a string is empty - Node.js String

Node.js examples for String:String Value

Description

Check if a string is empty

Demo Code

function empty(s){
    return ( ( s == null ) || ( s.length == 0 ) );
}

Related Tutorials