API Reference > ecschema-Metadata > Metadata > ECClass > traverseBaseClassesSync traverseBaseClassesSync Method Synchronously traverses through the inheritance tree, using depth-first traversal, calling the given callback function for each base class encountered. traverseBaseClassesSync(callback: (ecClass: ECClass, arg?: any) => boolean, arg?: any): 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 - boolean Defined in core/ecschema-metadata/src/Metadata/Class.ts Line 591 Last Updated: 12 June, 2024