callAll
a HOC function that can call all given functions.
Import
import { callAll } from '@fullstacksjs/toolbox';
Signature
function callAll<T>(...fns: Nullable<Function>[]) {}
Examples
callAll(foo, bar, baz)(1); // void (foo(1), bar(1), baz(1))
callAll(bar, null, undefined, baz)(); // void (bar(), baz());