https://bobbyhadz.com/blog/javascript-check-if-string-contains-only-spaces
Anonymous
You can always add complexity.