Looking to execute a series of functions using Lodash? Here's an example:
const functions = [
() => console.log('Fn 1'),
() => console.log('Fn 2')
];
_(functions).each(fn => fn());
Wondering if there is a Lodash function that can replace fn => fn()
? Maybe something like _(functions).each(_.invoke)
would make the code more clear.