How can i get a function name without knowing it in advance.
db = {
base: {
getById: function() {
console.log(methodName);
}
}
};
I want to call db.base.getById() and console to log 'base'; Please give me a hand :)