MCPcopy
hub / github.com/tinyplex/tinybase / argsOrGetArgs

Function argsOrGetArgs

src/ui-react/hooks.ts:536–543  ·  view source on GitHub ↗
(
  args: (Id | GetId<Parameter> | boolean | undefined)[],
  store: Store,
  parameter?: Parameter,
)

Source from the content-addressed store, hash-verified

534 );
535
536const argsOrGetArgs = <Parameter>(
537 args: (Id | GetId<Parameter> | boolean | undefined)[],
538 store: Store,
539 parameter?: Parameter,
540) =>
541 arrayMap(args, (arg) =>
542 isFunction(arg) ? arg(parameter as any, store) : arg,
543 );
544
545const nonFunctionDeps = <Parameter>(
546 args: (Id | GetId<Parameter> | boolean | undefined)[],

Callers 2

useSetCallbackFunction · 0.70
useDelFunction · 0.70

Calls 2

arrayMapFunction · 0.90
isFunctionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…