I need to check to see if a variable is null or has all empty spaces or is just blank (\"\").
I have the following, but it is not working:
var addr;
isEmptyOrSpaces(str){ return str === null || str.trim().length>0; }