MCPcopy
hub / github.com/ThatGuySam/doesitarm / invokeIfFunction

Function invokeIfFunction

helpers/scanner/file-api.ts:53–57  ·  view source on GitHub ↗
( listener: unknown, args: unknown[], context: unknown )

Source from the content-addressed store, hash-verified

51}
52
53function invokeIfFunction ( listener: unknown, args: unknown[], context: unknown ) {
54 if ( typeof listener === 'function' ) {
55 listener.apply( context, args )
56 }
57}
58
59function toDataUrl ( data: NodeBuffer, type?: string ) {
60 let dataUrl = 'data:'

Callers 1

registerUserEventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected