pars pars - 7 months ago 293
Node.js Question

Call function by (string) name on node.js

At the client side you do it via

window["functionName"](arguments);
. How it would be possible in node.js server-side code?

Answer

you're looking for global

Note, however, that in modules nothing is ever exposed to this level