pars pars - 5 months ago 203
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

Comments