function mergeInOptions(oldOptions,newOptions){
    if(typeof newOptions == 'object'){
        for(let key1 in newOptions){
            if(oldOptions[key1]){
                if(Array.isArray(oldOptions[key1])){
                    oldOptions[key1] = oldOptions[key1].concat(newOptions[key1]);
                }else if(typeof oldOptions == 'object'){
                    for(let key2 in newOptions[key1]){
                        oldOptions[key1][key2] = newOptions[key1][key2];
                    }
                }else{
                    oldOptions[key1] = newOptions[key1];
                }
            }else{
                oldOptions[key1] = newOptions[key1];
            }
        }
    }
}
/**
 * Merges a newly returned options object from processCondition() into the existing options
 * @param {*} oldOptions Old options- this gets mut'd!
 * @param {*} newOptions new options
 */
Merges a newly returned options object from processCondition() into the existing options
@param {*} oldOptions Old options- this gets mut'd.
@param {*} newOptions new options
Merges a newly returned options object from processCondition () into the existing options @param { * } oldOptions Old options - this gets mut ' d . @param { * } newOptions new options
function mergeInOptions(oldOptions,newOptions){
    if(typeof newOptions == 'object'){
        for(let key1 in newOptions){
            if(oldOptions[key1]){
                if(Array.isArray(oldOptions[key1])){
                    oldOptions[key1] = oldOptions[key1].concat(newOptions[key1]);
                }else if(typeof oldOptions == 'object'){
                    for(let key2 in newOptions[key1]){
                        oldOptions[key1][key2] = newOptions[key1][key2];
                    }
                }else{
                    oldOptions[key1] = newOptions[key1];
                }
            }else{
                oldOptions[key1] = newOptions[key1];
            }
        }
    }
}
function mergeInOptions ( oldOptions , newOptions ) { if ( typeof newOptions == 'object' ) { for ( let key1 in newOptions ) { if ( oldOptions [ key1 ] ) { if ( Array . isArray ( oldOptions [ key1 ] ) ) { oldOptions [ key1 ] = oldOptions [ key1 ] . concat ( newOptions [ key1 ] ) ; } else if ( typeof oldOptions == 'object' ) { for ( let key2 in newOptions [ key1 ] ) { oldOptions [ key1 ] [ key2 ] = newOptions [ key1 ] [ key2 ] ; } } else { oldOptions [ key1 ] = newOptions [ key1 ] ; } } else { oldOptions [ key1 ] = newOptions [ key1 ] ; } } } }
Merges a newly returned options object from processCondition() into the existing options
 @param {*} oldOptions Old options- this gets mut'd!
Merges a newly returned options object from processCondition () into the existing options @param { * } oldOptions Old options - this gets mut ' d!