Typescript: recursive check nestest arrays
问题 i have problem looping through a nested array that can contains arrays of itself... that should represent a dynamic menu as follow: this is how the objects are made: Interface IMenuNode: export interface IMenuNode { title: string; haveChildren: boolean; id: string; node: Array<IMenuNode>; link: string; img: string; value: string; } Class DataNode that implements IMenuNode export class DataNode implements IMenuNode { title: string; haveChildren: boolean; id: string; node: Array<IMenuNode>;