MCPcopy Create free account
hub / github.com/DTStack/molecule / mergeFunctions

Function mergeFunctions

src/common/utils.ts:30–34  ·  view source on GitHub ↗
(...funcs)

Source from the content-addressed store, hash-verified

28 * @param funcs
29 */
30export function mergeFunctions(...funcs) {
31 return function (...args) {
32 funcs.filter((fn) => !!fn).forEach((fn) => fn?.(...args));
33 };
34}
35
36export function randomId() {
37 return Date.now() + Math.round(Math.random() * 1000);

Callers 3

renderItemsFunction · 0.90
renderMenusByDataFunction · 0.90
ActionBarFunction · 0.90

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected