Home > widget-integration > RecentSearchService > hasRecentSearch
RecentSearchService.hasRecentSearch() method
Check if a search term exists in recent searches.
Signature:
hasRecentSearch(query: string): boolean;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
query |
string |
Search term to check |
Returns:
boolean
True if the search exists