Here I write about various events I was involved in and ideas that inspired me. Recently, it is more of a linux blog because I have been doing a lot of work on it. However, off and on I write on various other things that my mind just can't let go easily.
Sunday, 7 May 2017
Getting method name within the same method
- accessing arguments.callee.toString() and applying regex extraction to get the name
- accessing arguments.callee.name
It does not always work though. ECMA strict mode does not allow it but their is no alternative either.