Could you please review this code, it may have a potential bug?
File: src/schema-generator/gen_functional_types.ts
Code snippet:
tsSchema.push('function TypeInitialiser(schema:number,tapeItem:any) {');
tsSchema.push('if (Array.isArray(tapeItem)) tapeItem.map((p:any)=>TypeInitialiser(schema,p));');
tsSchema.push('if (tapeItem.typecode) return TypeInitialisers[schema][tapeItem.typecode](tapeItem.value); return tapeItem.value;');
tsSchema.push('}');
Shouldn't it be if (Array.isArray(tapeItem)) return tapeItem.map((p:any)=>TypeInitialiser(schema,p)) ?