How to get a parent of caller of obj method?
<p>How can i get a function name without knowing it in advance.</p>

<pre><code>db = {
    base: {
        getById: function() {
            console.log(methodName);
        }
    }
};
</code></pre>

<p>I want to call db.base.getById() and console to log 'base';
Please give me a hand :)</p>
