I have an Option[String].
Option[String]
I want to check if there is a string exists and if it\'s exists its not blank.
def isBlank( input : Option[Strin
What you should do is check using exists. Like so:
exists
myOption.exists(_.trim.nonEmpty)
which will return True if and only if the Option[String] is not None and not empty.
True
None