API Reference > ecschema-Metadata > Metadata > ECClass > traverseBaseClasses traverseBaseClasses Method Asynchronously traverses through the inheritance tree, using depth-first traversal, calling the given callback function for each base class encountered. traverseBaseClasses(callback: (ecClass: ECClass, arg?: any) => boolean, arg?: any): Promise<boolean> Parameter Type Description callback (ecClass: ECClass, arg?: any) => boolean The function to call for each base class in the hierarchy. arg any An argument that will be passed as the second parameter to the callback function. Returns - Promise<boolean> Defined in core/ecschema-metadata/src/Metadata/Class.ts Line 576 Last Updated: 12 June, 2024