How to check if a string is a full of spaces π€
Published over 1 year agoΒ β’Β 1 min read
|
Tip of the Day
Recently, I had a problem where the user can skip a certain text filed after write only spaces in the text filed so I came up with this code to check if the string is only white space and at this point consider this as empty:
From Community
|
|
|