Check if string is empty no trim - Node.js String

Node.js examples for String:Trim

Description

Check if string is empty no trim

Demo Code


/**//from w  w w. j  av  a2s.  co m
* Check if string is empty no trim
* @param {string}
*/
isEmptyNoTrim: function(value) {
   return (value === '' || (value == null) || (value.length === 0));
}

Related Tutorials