Thursday, June 19, 2014

check if string is empty in javascript

function isEmpty(str) {
            return (!str || 0 === str.length);
        }

No comments:

Post a Comment