prepareSimpleSearch
Code location
prepareSimpleSearch(
query
): (text
) =>SearchResult
|null
Construct a simple search callback that runs on a target string.
Parameters
• query: string
the space-separated words
Returns
Function
fn - the callback function to apply the search on
Parameters
• text: string
Returns
SearchResult
| null