I am writing a node.js module that exports two functions, and I want to call one function from another, but I see an undefined link error.
Is there a template for this? Am I just doing a private function and wrapping it?
Here is a sample code:
(function() { "use strict"; module.exports = function (params) { return { funcA: function() { console.log('funcA'); }, funcB: function() { funcA();
source share