API Reference > presentation-frontend > Core > FavoritePropertiesManager > has has Method Overloads has(field, projectId?, imodelId?) Deprecated has(field, imodel, scope) has(field, projectId?, imodelId?) Deprecated Check if field contains at least one favorite property. has(field: Field, projectId?: string, imodelId?: string): boolean Parameter Type Description field Field Field that contains properties. projectId string Project Id, to additionally include the project favorite properties, otherwise undefined - only global favorite properties are taken into account. imodelId string iModel Id, to additionally include the iModel favorite properties, otherwise undefined. The projectId must be specified if iModelId is specified. Returns - boolean has(field, imodel, scope) Check if field contains at least one favorite property. has(field: Field, imodel: IModelConnection, scope: FavoritePropertiesScope): boolean note initializeConnection must be called with the imodel before calling this function. Parameter Type Description field Field Field that contains properties. imodel IModelConnection IModelConnection. scope FavoritePropertiesScope FavoritePropertiesScope to check for favorite properties. It also checks the more general scopes. Returns - boolean Defined in presentation/frontend/src/presentation-frontend/favorite-properties/FavoritePropertiesManager.ts Line 429 Last Updated: 11 June, 2024