I'm currently looking for a way to do the equivalent of Python's
self.__class__ method in NodeJS.
I'm trying to implement a compatibility layer for dict on NodeJs's Object, by implementing most methods of the
I need this to implement Python's
dict.update method. One workaround, is to just call a function that has the same code as in the class method, then initialize the class there and run the
.update() method if it is equivalent to Python's dict (
typeof dict[key] == 'object' && dict[key] !== null)