function (sourceObj) {
      //processing object - loop de loop
      for (const property in sourceObj) {
        if (sourceObj.hasOwnProperty(property)) {
          if (_.isPlainObject(sourceObj[property])) {
            const use = _.get(sourceObj[property], 'use');
            if (useIsFalse(use)) {
              sourceObj = _.omit(sourceObj, property);
            }else {
              if (useIsTrue(use)) {
                //removes ture ueses
                sourceObj[property] = _.omit(sourceObj[property], 'use');
              }
              sourceObj[property] = searchObject(sourceObj[property]);
            }
          }
        }
      }
      return sourceObj;
    }
function (sourceObj) {
      //processing object - loop de loop
      for (const property in sourceObj) {
        if (sourceObj.hasOwnProperty(property)) {
          if (_.isPlainObject(sourceObj[property])) {
            const use = _.get(sourceObj[property], 'use');
            if (useIsFalse(use)) {
              sourceObj = _.omit(sourceObj, property);
            }else {
              if (useIsTrue(use)) {
                //removes ture ueses
                sourceObj[property] = _.omit(sourceObj[property], 'use');
              }
              sourceObj[property] = searchObject(sourceObj[property]);
            }
          }
        }
      }
      return sourceObj;
    }
function ( sourceObj ) { //processing object - loop de loop for ( const property in sourceObj ) { if ( sourceObj . hasOwnProperty ( property ) ) { if ( _ . isPlainObject ( sourceObj [ property ] ) ) { const use = _ . get ( sourceObj [ property ] , 'use' ) ; if ( useIsFalse ( use ) ) { sourceObj = _ . omit ( sourceObj , property ) ; } else { if ( useIsTrue ( use ) ) { //removes ture ueses sourceObj [ property ] = _ . omit ( sourceObj [ property ] , 'use' ) ; } sourceObj [ property ] = searchObject ( sourceObj [ property ] ) ; } } } } return sourceObj ; }
recurse check these, since there may be deeper options like tl to remove
recurse check these since there may be deeper options like tl to remove