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