title: Retrieve "self" function in the strict-mode JavaScript
body: <p>I often need in a function <code>f</code> to retrieve a name of the method that points to <code>f</code>. For example. Let's say we have a <code>getMethodName(obj, methodFunction)</code> function that uses <code>foreach</code> on <code>obj</code> to find a property that is a link to <code>methodFunction</code>:</p>
  
  <pre><code>obj = { 
      foo : function() {
          var myName = getMethodName(obj, arguments.callee); // "foo"
      }
  }
  </code></pre>
  
  <p>How do I do this in <strong>strict mode</strong> where <code>arguments.callee</code> is deprecated?</p>