JavaScript isempty

// check whether a string is empty
var is_empty = !str.length;
TechNyquist