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
Post a Comment