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 || str.trim() === ''; }