instance method String#empty

View source on GitHub →

String#empty() → Boolean

Checks if the string is empty.

Example
''.empty();
//-> true
 '  '.empty();
//-> false