Open shapkarin opened 5 years ago
I think that it would be better to use object as argument. instead of
generate.prototype.createComponent = function( module, componentName, answers, answersInner, onlyFile, cb ) {}
better is
generate.prototype.createComponent = function({ module, componentName, answers, answersInner = null, onlyFile = false, cb }) {}
And later use that:
generate.createComponent({ module: modulename, componentName: name, cb: function(status) {} });
Yes, this is a good refactoring idea! 🎉
I think that it would be better to use object as argument. instead of
better is
And later use that: