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
An approach based in pattern matching,
def isBlank( input : Option[String]) : Boolean = input match { case None => true case Some(s) => s.trim.isEmpty }