Here is an example of my code:
return Object.assign({}, generators(config));
When the generators
variable is a single function, everything works fine. However, if it's an array of functions (Function[]
) I want to execute all of them with the config
argument passed to each.
Query:: How can I pass multiple functions to Object.assign
and supply each with the config
argument?