1/**
2 * Checks the string if undefined, null, not typeof string, empty or space(s)
3 * @param {any} str string to be evaluated
4 * @returns {boolean} the evaluated result
5*/
6function isStringNullOrWhiteSpace(str) {
7 return str === undefined || str === null
8 || typeof str !== 'string'
9 || str.match(/^ *$/) !== null;
10}