lib/jyt.utils.js
function isEmptyObject(obj) {
    if (obj === null) {
        return true;
    }
    if (!isObject(obj)) {
        return false;
    }

    for (var key in obj) {
        if (obj.hasOwnProperty(key) && obj[key]) {
            return false;
        }
    }

    return true;
}
function isEmptyObject(obj) {
    if (obj === null) {
        return true;
    }
    if (!isObject(obj)) {
        return false;
    }

    for (var key in obj) {
        if (obj.hasOwnProperty(key) && obj[key]) {
            return false;
        }
    }

    return true;
}
function isEmptyObject ( obj ) { if ( obj === null ) { return true ; } if ( ! isObject ( obj ) ) { return false ; } for ( var key in obj ) { if ( obj . hasOwnProperty ( key ) && obj [ key ] ) { return false ; } } return true ; }
Return true if an object and is empty
@param obj
@returns {boolean}
Return true if an object and is empty