JavaScript isEmpty

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