A function that delays calling fn
until after wait
milliseconds have elapsed since the last time it was called.
Clears the search input and all search results.
on-click mouse event.
Renders a clear all button.
Renders all search bar options.
Renders a badge displaying search results count.
Determines whether the search input currently has a value.
true, if the search input currently has a value; false, otherwise.
Updates the search result count.
the result count.
Debounce promise-returning & async functions.