blank :: String

blank() -> Boolean

 

Check if the string is 'blank', meaning either empty or containing only whitespace.

 

''.blank();

//-> true

 

'  '.blank();

//-> true

 

' a '.blank();

//-> false

 

 


Prototype API 1.5.0 - prototypejs.org