blank
1.5.1

blank() -> Boolean

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

Examples


''.blank();
//-> true

'  '.blank();
//-> true

' a '.blank();
//-> false