index.js
function isEmptyObj(object) {
    if(object === undefined)
        return true;

    var objToSend = JSON.parse(JSON.stringify(object));
    var result = nestedEmptyCheck(objToSend);
    if(JSON.stringify(result).indexOf('false') > -1)
        return false;
    return true;
}
function isEmptyObj(object) {
    if(object === undefined)
        return true;

    var objToSend = JSON.parse(JSON.stringify(object));
    var result = nestedEmptyCheck(objToSend);
    if(JSON.stringify(result).indexOf('false') > -1)
        return false;
    return true;
}
function isEmptyObj ( object ) { if ( object === undefined ) return true ; var objToSend = JSON . parse ( JSON . stringify ( object ) ) ; var result = nestedEmptyCheck ( objToSend ) ; if ( JSON . stringify ( result ) . indexOf ( 'false' ) > - 1 ) return false ; return true ; }
before calling the nested validation method,
makes a copy of the original object and calls with the copy of the object.
@param object
@returns {boolean}
before calling the nested validation method makes a copy of the original object and calls with the copy of the object .