index.js
function(pattern, options) {
    var opts = this.setDefaults(options);
    if (typeof opts.recurse === 'boolean') {
      return opts.recurse;
    }
    return pattern.isGlobstar;
  }
function(pattern, options) {
    var opts = this.setDefaults(options);
    if (typeof opts.recurse === 'boolean') {
      return opts.recurse;
    }
    return pattern.isGlobstar;
  }
function ( pattern , options ) { var opts = this . setDefaults ( options ) ; if ( typeof opts . recurse === 'boolean' ) { return opts . recurse ; } return pattern . isGlobstar ; }
Return `true` if the iterator should recurse, based
on the given glob pattern and options.

@param  {String} `pattern`
@param  {Object} `options`
Return true if the iterator should recurse based on the given glob pattern and options .