function call another function in Module.Exports Node.JS -


i'm trying make function call inside module i'm getting functiontwo not define.

module.js

// module.exports module.exports = function ( arg ) {  if(arg instanceof object) {      return functiontwo.apply(arg); }   functionone: function(arg) {}   functiontwo: function(arg) { //in here may call functionone or functionthree }   functionthree: function() {} 

main.js

require(module)(typeobject); require(module)(typestring); 

so i'm trying if type being passed main.js module.js object want call specific function , return, don't know maybe i'm defining function wrong.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -