How to find the object a function belongs to?
<p>Given a function, is there a way to find out the object that holds it?</p>

<pre><code>var dog = { 
  bark: function() { alert('dfd') },
  name: 'Bill'
}

function getNameFromBark(barkFunc){
   //How to implement this method?
}

getNameFromBack(dog.bark); //I would like this to return Bill.
</code></pre>
