Skip to main content
added 2 characters in body
Source Link
Kick Buttowski
  • 6.7k
  • 13
  • 39
  • 61

The closest thing you can get to str.Emptystr.Empty (with the precondition that str is a String) is:

if (!str.length) { ... 

The closest thing you can get to str.Empty (with the precondition that str is a String) is:

if (!str.length) { ... 

The closest thing you can get to str.Empty (with the precondition that str is a String) is:

if (!str.length) { ... 
Source Link
Ateş Göral
  • 140.5k
  • 27
  • 142
  • 191

The closest thing you can get to str.Empty (with the precondition that str is a String) is:

if (!str.length) { ...