UNPKG
@nozbe/microfuzz
Version:
latest (1.0.0)
next (0.1.5)
1.0.0
0.1.5
A tiny, simple, fast fuzzy search library
github.com/Nozbe/microfuzz
Nozbe/microfuzz
@nozbe/microfuzz
/
src
/
normalizeText.d.ts
8 lines
(7 loc)
•
237 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * Normalizes text so that it's suitable to comparisons, sorting, search, etc. by: * - turning into lowercase * - removing diacritics * - removing extra whitespace */
export
default
function
normalizeText
(
string
:
string
):
string