title: How to find object member name using regex
body: <pre><code>function myname()
  {
  Console.log(arguments.callee.toString().match(/function ([^\(]+)/)[1]);
  }
  </code></pre>
  
  <p>this print myname in console.
  but I have to print this</p>
  
  <pre><code>myname: function() {
  Console.log(arguments.callee.toString().match(/function ([^\(]+)/)[1]);
  }
  </code></pre>
  
  <p>which is throwing an error.
  Is there a way to print myname from problem defined above. I have to call it from inside only.</p>