Check empty or null string in Javascript

!str || str.length === 0

But since !"" is true, we can write it as follows:

!!str === false