In general I try to stay away from using this altogether. If you have to use it, use apply or bind. Another trick that works in some cases is to reassign it to a variable that will be available to your scope.
I think the answer is provided here: https://www.espruino.com/Modules
© Espruino, powered by microcosm.
Report a problem