MCPcopy Index your code
hub / github.com/MALSync/MALSync / isChibiJson

Method isChibiJson

src/chibiScript/ChibiConsumer.ts:140–149  ·  view source on GitHub ↗
(index: number, functionName: string, argument: any)

Source from the content-addressed store, hash-verified

138 }
139
140 protected isChibiJson(index: number, functionName: string, argument: any) {
141 return (
142 Array.isArray(argument) &&
143 argument.length > 0 &&
144 Array.isArray(argument[0]) &&
145 argument[0].length > 0 &&
146 chibiParamIndices[functionName] &&
147 chibiParamIndices[functionName].includes(index + 2) // +2 to account for ctx and input arguments
148 );
149 }
150
151 logError(error, functionName, input, args) {
152 console.log(

Callers 2

_subroutineMethod · 0.95
_subroutineAsyncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected