index.js
function addDefaultOptions(options, defaultOptions) {

    _.defaults(options, defaultOptions);
    options.currentRetries = 0;
    return options;

}
function addDefaultOptions(options, defaultOptions) {

    _.defaults(options, defaultOptions);
    options.currentRetries = 0;
    return options;

}
function addDefaultOptions ( options , defaultOptions ) { _ . defaults ( options , defaultOptions ) ; options . currentRetries = 0 ; return options ; }
Add the default crawler options into the option used for the current request


@param the option used for the current request
@param The default options
@return the modified option object
Add the default crawler options into the option used for the current request