Node.js examples for String:Trim
Is String empty after trim
function stringEmpty (str) { var strcatch = String(str); return strTrim(strcatch).length == 0; } function strTrim(str) { var strcatch = String(str); return strcatch.replace(/^\s+|\s+$/gm,''); }