var obj = {};
Object.isBlank = function(obj) { if (obj == null) return false; if (obj instanceof Array || typeof obj == 'string') return !obj.length; var blank = new obj.constructor(); for (var key in obj) if (!(key in blank) || obj[key] !== blank[key]) return false; return true; };
function isEmpty(obj) { for (var key in obj) return false; return true; }