title: How do I determine object that function is a method of?
body: <pre><code>var A = {
      x : function () { }
  };
  
  var b = function (method) {
      //want to know method's "parent" here
  };
  
  b(A.x);
  </code></pre>
  
  <p>I want to know that x is defined in A when I call the b(A.x). Is this possible?</p>