Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/question/text-util.ts>textSearch

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function textSearch
import { textSearch } from "https://deno.land/x/netzo@0.5.107/deps/question/text-util.ts";

Searches with the given search string for items that matches it. It sorts the returned items where the most specific item is first and the least specific is last. If an item does not have any matching qualities it is left out.

Parameters

searchString: string

The free text string that is searched for.

items: T[]

All items that the search is within.

optional
options: TextSearchOptions<T>

Returns

The items that matches the search string in a order of most specific to least specific.