lib/routesHandler/lib/initializeRoutes.js
function (attr, attrName) {
            if (_.isObject(attr) && !_.isDate(attr) && !_.isBoolean(attr) && !_.isString(attr) && !_.isNumber(attr) && !_.isFunction(attr) && !_.isRegExp(attr) && !_.isArray(attr)) {
                //attr = _removeAttributes();
                for (var aIndex in attr) {
                    attr[aIndex] = _removeAttributes(attr[aIndex], aIndex);
                }
                return attr;
            }
            else {
                if (_.indexOf(allowedAttributes, attrName) != -1) {
                    if (_.isFunction(attr)) {
                        attr = _functionName(attr);
                    }

                    return attr;
                }
                else {
                    return;
                }
            }
        }
function (attr, attrName) {
            if (_.isObject(attr) && !_.isDate(attr) && !_.isBoolean(attr) && !_.isString(attr) && !_.isNumber(attr) && !_.isFunction(attr) && !_.isRegExp(attr) && !_.isArray(attr)) {
                //attr = _removeAttributes();
                for (var aIndex in attr) {
                    attr[aIndex] = _removeAttributes(attr[aIndex], aIndex);
                }
                return attr;
            }
            else {
                if (_.indexOf(allowedAttributes, attrName) != -1) {
                    if (_.isFunction(attr)) {
                        attr = _functionName(attr);
                    }

                    return attr;
                }
                else {
                    return;
                }
            }
        }
function ( attr , attrName ) { if ( _ . isObject ( attr ) && ! _ . isDate ( attr ) && ! _ . isBoolean ( attr ) && ! _ . isString ( attr ) && ! _ . isNumber ( attr ) && ! _ . isFunction ( attr ) && ! _ . isRegExp ( attr ) && ! _ . isArray ( attr ) ) { //attr = _removeAttributes(); for ( var aIndex in attr ) { attr [ aIndex ] = _removeAttributes ( attr [ aIndex ] , aIndex ) ; } return attr ; } else { if ( _ . indexOf ( allowedAttributes , attrName ) != - 1 ) { if ( _ . isFunction ( attr ) ) { attr = _functionName ( attr ) ; } return attr ; } else { return ; } } }
Remove attributes recursively
Remove attributes recursively