title: How to bind object in ES6?
body: <pre><code>let obj = {
      a: &quot;obj foo a&quot;
  }
  
  this.a = 1
  
  let foo = () =&gt; {
      // this.a = 34;
      setTimeout(() =&gt; {
          console.log(this); /// this is not bound at all
      }, 100)
  }
  
  foo();
  var baz = foo.bind(obj);
  
  baz();
  obj.a = &quot;The new A value&quot;;
  </code></pre>
  <p>How to bind an obj to the foo function to access it inside timeout.</p>