funfunautomator
funfunautomator copied to clipboard
Instead of naming deps, shall we expand that as object
Example
module.exports = function(deps) {
return function() {
deps.query(...)
};
}
Instead can we go with
module.exports = function({ query }) {
return function() {
query(...)
};
}
This will also explain that what were all the dependencies injected in the factory function
@mpj Kindly let me know if this is a valid concern or not. Thanks