Message from JavaScript discussions

January 2019

— I misunderstood

— 

Yepale is a property of an object, and its a function, my question is that if there is a way to get the name inside the function

— I don’t think there is a way. It has to be explicitly passed as argument or something.

— Ok ty

— Nop

— So that is, change the function

— const a = {
yepale: () =>
console.log(a.yepale.name)
};

— This would work, or just:
const a = {
yepale: () =>
console.log('yepale')
};

— The interest is to generalize some methods

— Not to write it 😅

— Why do you need their names if they are general?

— This is ridiculus, non evaluable text.