MCPcopy Create free account
hub / github.com/antfu/utils / batchInvoke

Function batchInvoke

src/function.ts:6–8  ·  view source on GitHub ↗
(functions: Nullable<Fn>[])

Source from the content-addressed store, hash-verified

4 * Call every function in an array
5 */
6export function batchInvoke(functions: Nullable<Fn>[]) {
7 functions.forEach(fn => fn && fn())
8}
9
10/**
11 * Call the function, returning the result

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected