title: How do I refer to the module scope from within an ES 6 module?
body: <p>In a browser based environment, how would I refer to a variable inside module-level scope if it had the same name as a function parameter within the module?</p>
  
  <p>For e.g. if I had the following:</p>
  
  <p><strong>Module Foo</strong></p>
  
  <pre><code>let thisFoo = undefined;
  
  export function do(foo) {
    thisFoo = foo;
  }
  </code></pre>
  
  <p>I could assign the value of the function parameter <code>foo</code> to the module-scoped variable <code>thisFoo</code> because they are named differently.</p>
  
  <p>But what if I had named the module level variable also by the same name as the function parameter, how would I refer to the module level variable?</p>
  
  <p><strong>Module Foo</strong></p>
  
  <pre><code>let foo = undefined;
  
  export function do(foo) {
  
    // I'd like to refer to the module level variable foo
    // for the LHS, and assign to it the function level
    // variable foo
  
    // ???
    // obviously, doesn't make any sense
    foo = foo;
  
    // this would still refer to the window object, right?
    this.foo = foo;
  }
  </code></pre>